mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
loading bar
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#ifndef LOADING_APP_STATE_H
|
||||
#define LOADING_APP_STATE_H
|
||||
|
||||
#include <abstractAppState.h>
|
||||
#include <util.h>
|
||||
|
||||
namespace battleship{
|
||||
class LoadingAppState : public gameBase::AbstractAppState{
|
||||
public:
|
||||
LoadingAppState(gameBase::AbstractAppState*, std::string);
|
||||
~LoadingAppState(){}
|
||||
void onAttached(){}
|
||||
void onDettached();
|
||||
void update();
|
||||
inline void setLoadableAssets(std::vector<std::string> ls){
|
||||
this->loadableAssets = ls;
|
||||
initNumAssets = ls.size();
|
||||
}
|
||||
private:
|
||||
int initNumAssets;
|
||||
std::vector<std::string> loadableAssets;
|
||||
gameBase::AbstractAppState *newState = nullptr;
|
||||
std::string newScreen = "";
|
||||
vb01::s64 lastUpdateTime = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user