Brunot
Loading...
Searching...
No Matches
TutorialScene.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 cTutorialScene;
32 }
33
34#pragma endregion
35
38 auto operator=(const TutorialScene&) -> TutorialScene& = default;
39 ~TutorialScene() override = default;
40 TutorialScene(TutorialScene&& other) noexcept;
41 auto operator=(TutorialScene&& other) noexcept -> TutorialScene& = default;
42
43#pragma region overriden_functions
44
45 auto clone() const -> std::unique_ptr<GameObject> override
46 {
47 return std::make_unique<TutorialScene>(*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 TutorialScene& n) -> void;
63 friend auto from_json(const json& j, TutorialScene& n) -> void;
64
65
66#pragma endregion
67
68#pragma region TutorialScene_functions
69
70#pragma endregion
71
72#pragma region messaging_functions
73
75 auto linkMessages() -> void;
76 auto backButtonPressed(const Message* message) -> Message;
77
78#pragma endregion
79
80private:
81#pragma region member_variables
82
83#pragma endregion
84
85#pragma region helper_functions
86
87#pragma endregion
88
89#pragma region static_variables
90
91#pragma endregion
92
93};
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
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:24
Definition TutorialScene.h:25
auto operator=(TutorialScene &&other) noexcept -> TutorialScene &=default
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition TutorialScene.cpp:63
TutorialScene()
Definition TutorialScene.cpp:28
auto onUpdate(float dt) -> void override
called once every frame.
Definition TutorialScene.cpp:49
static auto getEnum() -> ComponentTypeEnum
Definition TutorialScene.h:29
~TutorialScene() override=default
friend auto to_json(json &j, const TutorialScene &n) -> void
Definition TutorialScene.cpp:68
auto load(const Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition TutorialScene.cpp:58
auto componentShowMenu() -> void override
Definition TutorialScene.h:50
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition TutorialScene.h:45
auto backButtonPressed(const Message *message) -> Message
Definition TutorialScene.cpp:98
auto linkMessages() -> void
Resets the table to prepare it for a new game.
Definition TutorialScene.cpp:85
friend auto from_json(const json &j, TutorialScene &n) -> void
Definition TutorialScene.cpp:75
auto operator=(const TutorialScene &) -> TutorialScene &=default
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition TutorialScene.h:55
static auto bindLuaTypes(sol::state &lua) -> void
Definition TutorialScene.h:28
auto onRender() -> void override
called every frame after update has been called for every object.
Definition TutorialScene.cpp:54
Definition Message.h:35