From 1b251bd174527951eec220ecbcb7eca89328e5b8 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:02:01 +0200 Subject: feat: state manager --- src/core/state.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/core/state.h (limited to 'src/core/state.h') diff --git a/src/core/state.h b/src/core/state.h new file mode 100644 index 0000000..f5d808a --- /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 on_enter() = 0; + virtual void on_exit() = 0; + virtual void on_update(float delta_time) = 0; + virtual void on_render() = 0; + virtual void on_event(Event& event) = 0; + }; +}; -- cgit v1.3