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
23{
24public:
25#pragma region static_functions
26
27#pragma endregion
28
31 auto operator=(const TutorialScene&) -> TutorialScene& = default;
32 ~TutorialScene() override = default;
33 TutorialScene(TutorialScene&& other) noexcept;
34 auto operator=(TutorialScene&& other) noexcept -> TutorialScene& = default;
35
36#pragma region overriden_functions
37
38 auto clone() const -> std::unique_ptr<GameObject> override
39 {
40 return std::make_unique<TutorialScene>(*this);
41 }
42
43 auto componentShowMenu() -> void override
44 {
45 } // for debug ImGUI
46 auto onUpdate(float dt) -> void override;
47
48 auto endWindow() -> void override
49 {
50 } // for debug ImGUI
51 auto onRender() -> void override;
52 auto load(Stream& stream) -> void override;
53 auto save(Stream& stream) const -> void override;
54
55 friend auto to_json(json& j, const TutorialScene& n) -> void;
56 friend auto from_json(const json& j, TutorialScene& n) -> void;
57
58
59#pragma endregion
60
61#pragma region TutorialScene_functions
62
63#pragma endregion
64
65#pragma region messaging_functions
66
68 auto linkMessages() -> void;
69 auto backButtonPressed(const Message* message) -> Message;
70
71#pragma endregion
72
73private:
74#pragma region member_variables
75
76#pragma endregion
77
78#pragma region helper_functions
79
80#pragma endregion
81
82#pragma region static_variables
83
84#pragma endregion
85
86};
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 TutorialScene.h:23
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
~TutorialScene() override=default
friend auto to_json(json &j, const TutorialScene &n) -> void
Definition TutorialScene.cpp:68
auto componentShowMenu() -> void override
Definition TutorialScene.h:43
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition TutorialScene.h:38
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 load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition TutorialScene.cpp:58
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:48
auto onRender() -> void override
called every frame after update has been called for every object.
Definition TutorialScene.cpp:54
Definition Message.h:34