// // Created by sebastian on 24.12.25. // #ifndef DICEWARS_SIEDLER_LAYER_H #define DICEWARS_SIEDLER_LAYER_H #include #include #include "../core/Application.h" class GameMode; class Layer { public: Layer() = default; virtual ~Layer() = default; virtual void onAttach() {} virtual void onDetach() {} virtual void onUpdate() {} virtual void onRender() {} void setGameMode(std::shared_ptr gameMode) {this->gameMode = std::move(gameMode);} [[nodiscard]] std::shared_ptr getGameMode() const {return gameMode;} protected: std::shared_ptr gameMode; }; #endif //DICEWARS_SIEDLER_LAYER_H