Brunot
Loading...
Searching...
No Matches
WinScreenScene.h
Go to the documentation of this file.
1
11// ____ __ __ __
12// /\__ _\/\ \ /\ \/\ \
13// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
14// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
15// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
16// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
17// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
18
19
20#pragma once
21#include "Framework/Component.h"
22#include "Framework/Factory.h"
23
29{
30public:
31#pragma region static_functions
32
33#pragma endregion
34
37 auto operator=(const WinScreenScene&) -> WinScreenScene& = default;
38 ~WinScreenScene() override = default;
39 WinScreenScene(WinScreenScene&& other) noexcept;
40 auto operator=(WinScreenScene&& other) noexcept -> WinScreenScene& = default;
41
42#pragma region overriden_functions
43
44 auto clone() const -> std::unique_ptr<GameObject> override
45 {
46 return std::make_unique<WinScreenScene>(*this);
47 }
48
49 auto componentShowMenu() -> void override
50 {
51 } // for debug ImGUI
52 auto onUpdate(float dt) -> void override;
53
54 auto endWindow() -> void override
55 {
56 } // for debug ImGUI
57 auto onRender() -> void override;
58 auto load(Stream& stream) -> void override;
59 auto save(Stream& stream) const -> void override;
60
61 friend auto to_json(json& j, const WinScreenScene& n) -> void;
62 friend auto from_json(const json& j, WinScreenScene& n) -> void;
63
64
65#pragma endregion
66
67#pragma region WinScreenScene_functions
68
69 auto loadWinScreenData(Stream& stream) -> void;
70
71#pragma endregion
72
73#pragma region messaging_functions
74 auto linkMessages() -> void;
75
76 auto playAgainButtonPressed(const Message* message) -> Message;
77 auto goToMainMenuButtonPressed(const Message* message) -> Message;
78 auto quitButtonPressed(const Message* message) -> Message;
79
80#pragma endregion
81
82private:
83#pragma region member_variables
84
85#pragma endregion
86
87#pragma region helper_functions
88
89#pragma endregion
90
91#pragma region static_variables
92
93#pragma endregion
94
95};
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
An indicator that loops through a parents' nodes children and can "select" them on keypress.
Definition WinScreenScene.h:29
auto componentShowMenu() -> void override
Definition WinScreenScene.h:49
auto operator=(const WinScreenScene &) -> WinScreenScene &=default
auto linkMessages() -> void
Definition WinScreenScene.cpp:108
WinScreenScene()
Definition WinScreenScene.cpp:31
auto playAgainButtonPressed(const Message *message) -> Message
Definition WinScreenScene.cpp:136
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition WinScreenScene.cpp:66
auto onRender() -> void override
called every frame after update has been called for every object.
Definition WinScreenScene.cpp:57
friend auto to_json(json &j, const WinScreenScene &n) -> void
Definition WinScreenScene.cpp:71
auto onUpdate(float dt) -> void override
called once every frame.
Definition WinScreenScene.cpp:52
auto loadWinScreenData(Stream &stream) -> void
Definition WinScreenScene.cpp:87
auto operator=(WinScreenScene &&other) noexcept -> WinScreenScene &=default
~WinScreenScene() override=default
friend auto from_json(const json &j, WinScreenScene &n) -> void
Definition WinScreenScene.cpp:78
auto quitButtonPressed(const Message *message) -> Message
Definition WinScreenScene.cpp:152
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition WinScreenScene.cpp:61
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition WinScreenScene.h:44
auto goToMainMenuButtonPressed(const Message *message) -> Message
Definition WinScreenScene.cpp:144
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition WinScreenScene.h:54
Definition Message.h:34