diff options
Diffstat (limited to 'src/Core/State.h')
| -rw-r--r-- | src/Core/State.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Core/State.h b/src/Core/State.h new file mode 100644 index 0000000..2d368d7 --- /dev/null +++ b/src/Core/State.h @@ -0,0 +1,18 @@ +#pragma once + +#include "Event.h" + +namespace Donut +{ + class State + { + public: + virtual ~State() = default; + + virtual void OnEnter() = 0; + virtual void OnExit() = 0; + virtual void OnUpdate(float deltaTime) = 0; + virtual void OnRender() = 0; + virtual void OnEvent(Event& event) = 0; + }; +};
\ No newline at end of file |
