1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-14 14:44:22 +01:00
openrw/rwgame/states/LoadingState.hpp
Filip Gawin 6d80ce6424 Cleanup, use c++11 override
Maybe some of replace with
final, what do think?
2018-01-08 22:35:21 +00:00

27 lines
515 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);
void enter() override;
void exit() override;
void tick(float dt) override;
void draw(GameRenderer* r) override;
bool shouldWorldUpdate() override;
void handleEvent(const SDL_Event& event) override;
};
#endif // LOADINGSTATE_HPP