1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
openrw/rwgame/states/LoadingState.hpp
Filip Gawin 4e1948c23c Rearrange passing args to functions/ctors
Kill extra shared_ptr by passing them using const reference.
Use perfect forwarding for strings.
Remove redundant std::move.
2018-05-16 19:17:13 +02:00

27 lines
522 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, 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