1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00
openrw/rwgame/states/LoadingState.hpp
2019-01-20 20:00:00 +01:00

28 lines
522 B
C++

#ifndef LOADINGSTATE_HPP
#define LOADINGSTATE_HPP
#include "State.hpp"
#include <functional>
class LoadingState final : public State {
std::function<void(void)> complete;
public:
LoadingState(RWGame* game, const 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