mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
495c831972
It lets complier to make extra optimization. See: https://gcc.godbolt.org/#compilers:!((compiler:g6,options:'-O2+-Wall++- xc%2B%2B+- std%3Dc%2B%2B11',sourcez:MYGwhgzhAECC0G8BQAHArgIxAS2ALiWiOgDdsAnAFzTBFIHtsATaAMwAoBKaAXmgAYA3EgC%2BwpKEgwAQtDzR0WXHESpMOfIWIlGLDt1bYAdrWj0SAU3LlmF4WKQTwUaAGE5C9cvjJFGgsQMzGxcZpbWtvbiOsGs9PTs0gBk0BjcyIEYAHT69o4xLBhg5OyuKcDpWkTAOVz2QAA%3D%3D)),filterAsm: (commentOnly:!t,directives:!t,intel:!t,labels:!t),version:3
27 lines
528 B
C++
27 lines
528 B
C++
#ifndef LOADINGSTATE_HPP
|
|
#define LOADINGSTATE_HPP
|
|
#include "StateManager.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
|