1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
openrw/rwgame/states/LoadingState.hpp
2017-09-12 01:40:31 +01:00

26 lines
562 B
C++

#ifndef LOADINGSTATE_HPP
#define LOADINGSTATE_HPP
#include "StateManager.hpp"
#include <functional>
class LoadingState : public State {
std::function<void(void)> complete;
public:
LoadingState(RWGame* game, std::function<void(void)> callback);
virtual void enter() override;
virtual void exit() override;
virtual void tick(float dt) override;
virtual void draw(GameRenderer* r) override;
virtual bool shouldWorldUpdate() override;
virtual void handleEvent(const SDL_Event& event) override;
};
#endif // LOADINGSTATE_HPP