25#pragma region static_functions
36#pragma region overriden_functions
40 return std::make_unique<PauseScene>(*
this);
46 auto onUpdate(
float dt) ->
void override;
53 auto save(
Stream& stream)
const ->
void override;
61#pragma region pauseScene_functions
65#pragma region messaging_functions
78#pragma region member_variables
82#pragma region helper_functions
86#pragma region static_variables
sys::Json Stream
Definition AudioObject.h:20
The base class for components, holding all of their shared All components should inherit from this.
nlohmann::json json
Definition Json.cpp:19
Component(ComponentTypeEnum type, const char *typeName)
Definition Component.cpp:72
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:23
Definition PauseScene.h:23
friend auto to_json(json &j, const PauseScene &n) -> void
Definition PauseScene.cpp:68
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition PauseScene.h:38
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition PauseScene.cpp:58
auto resumeButtonPressed(const Message *message) -> Message
Definition PauseScene.cpp:96
auto linkMessages() -> void
Definition PauseScene.cpp:137
auto componentShowMenu() -> void override
Definition PauseScene.h:43
friend auto from_json(const json &j, PauseScene &n) -> void
Definition PauseScene.cpp:75
auto optionsButtonPressed(const Message *message) -> Message
Definition PauseScene.cpp:127
auto operator=(PauseScene &&other) noexcept -> PauseScene &=default
auto howToPlayButtonPressed(const Message *message) -> Message
Definition PauseScene.cpp:118
~PauseScene() override=default
auto onRender() -> void override
called every frame after update has been called for every object.
Definition PauseScene.cpp:54
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition PauseScene.h:48
PauseScene()
Definition PauseScene.cpp:28
auto operator=(const PauseScene &) -> PauseScene &=default
auto receivePauseKeyPressed(const Message *message) -> Message
Resets the table to prepare it for a new game.
Definition PauseScene.cpp:83
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition PauseScene.cpp:63
auto quitButtonPressed(const Message *message) -> Message
Definition PauseScene.cpp:108
auto onUpdate(float dt) -> void override
called once every frame.
Definition PauseScene.cpp:49