Brunot
Loading...
Searching...
No Matches
ConfirmDestructiveActionScene.h
Go to the documentation of this file.
1
11// ____ __ __ __
12// /\__ _\/\ \ /\ \/\ \
13// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
14// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
15// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
16// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
17// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
18
19#pragma once
20#include "Framework/Component.h"
21
22struct Message;
23
25{
26public:
27#pragma region static_functions
28 static auto bindLuaTypes(sol::state& lua) -> void {}
29 static auto getEnum() -> ComponentTypeEnum
30 {
31 return cConfirmDestructiveActionScene;
32 }
33
34#pragma endregion
35
39 ~ConfirmDestructiveActionScene() override = default;
42
43#pragma region overriden_functions
44
45 auto clone() const -> std::unique_ptr<GameObject> override
46 {
47 return std::make_unique<ConfirmDestructiveActionScene>(*this);
48 }
49
50 auto componentShowMenu() -> void override
51 {
52 } // for debug ImGUI
53 auto onUpdate(float dt) -> void override;
54
55 auto endWindow() -> void override
56 {
57 } // for debug ImGUI
58 auto onRender() -> void override;
59 auto load(const Stream& stream) -> void override;
60 auto save(Stream& stream) const -> void override;
61
62 friend auto to_json(json& j, const ConfirmDestructiveActionScene& n) -> void;
63 friend auto from_json(const json& j, ConfirmDestructiveActionScene& n) -> void;
64
65
66#pragma endregion
67
68#pragma region ConfirmDestructiveActionScene_functions
69
70#pragma endregion
71
72#pragma region messaging_functions
73 auto linkMessages() -> void;
74
75 auto confirmQuitButtonPressed(const Message* message) -> Message;
76 auto confirmResumeButtonPressed(const Message* message) -> Message;
77 auto confirmQuitPauseButtonPressed(const Message* message) -> Message;
78
79#pragma endregion
80
81private:
82#pragma region member_variables
83
84#pragma endregion
85
86#pragma region helper_functions
87
88#pragma endregion
89
90#pragma region static_variables
91
92#pragma endregion
93
94};
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
ComponentTypeEnum
This enum lists out every type of component we have.
Definition Component.h:39
Component(ComponentTypeEnum type, const char *typeName)
Definition Component.cpp:72
Definition ConfirmDestructiveActionScene.h:25
auto componentShowMenu() -> void override
Definition ConfirmDestructiveActionScene.h:50
friend auto to_json(json &j, const ConfirmDestructiveActionScene &n) -> void
Definition ConfirmDestructiveActionScene.cpp:72
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition ConfirmDestructiveActionScene.cpp:67
static auto bindLuaTypes(sol::state &lua) -> void
Definition ConfirmDestructiveActionScene.h:28
auto linkMessages() -> void
Definition ConfirmDestructiveActionScene.cpp:87
auto operator=(const ConfirmDestructiveActionScene &) -> ConfirmDestructiveActionScene &=default
auto operator=(ConfirmDestructiveActionScene &&other) noexcept -> ConfirmDestructiveActionScene &=default
auto confirmResumeButtonPressed(const Message *message) -> Message
Definition ConfirmDestructiveActionScene.cpp:112
auto onUpdate(float dt) -> void override
called once every frame.
Definition ConfirmDestructiveActionScene.cpp:53
~ConfirmDestructiveActionScene() override=default
ConfirmDestructiveActionScene()
Definition ConfirmDestructiveActionScene.cpp:32
auto onRender() -> void override
called every frame after update has been called for every object.
Definition ConfirmDestructiveActionScene.cpp:58
static auto getEnum() -> ComponentTypeEnum
Definition ConfirmDestructiveActionScene.h:29
auto confirmQuitButtonPressed(const Message *message) -> Message
Definition ConfirmDestructiveActionScene.cpp:134
friend auto from_json(const json &j, ConfirmDestructiveActionScene &n) -> void
Definition ConfirmDestructiveActionScene.cpp:79
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition ConfirmDestructiveActionScene.h:45
auto confirmQuitPauseButtonPressed(const Message *message) -> Message
Definition ConfirmDestructiveActionScene.cpp:120
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition ConfirmDestructiveActionScene.h:55
auto load(const Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition ConfirmDestructiveActionScene.cpp:62
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:24
Definition Message.h:35