Brunot
Loading...
Searching...
No Matches
TestRunner.h
Go to the documentation of this file.
1
12// ____ __ __ __
13// /\__ _\/\ \ /\ \/\ \
14// \/_/\ \/\ \ \___ __ \ \ \_\ \ ___ __ __ ____ __
15// \ \ \ \ \ _ `\ /'__`\ \ \ _ \ / __`\/\ \/\ \ /',__\ /'__`\
16// \ \ \ \ \ \ \ \/\ __/ \ \ \ \ \/\ \L\ \ \ \_\ \/\__, `\/\ __/
17// \ \_\ \ \_\ \_\ \____\ \ \_\ \_\ \____/\ \____/\/\____/\ \____\
18// \/_/ \/_/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/___/ \/____/
19
20#pragma once
21
22#include "Framework/System.h"
23
24namespace sys
25{
26class TestRunner : public System
27{
28public:
29#pragma region static_functions
30
34 static auto getEnum() -> Type
35 {
36 return Type::TestRunner;
37 }
38
39#pragma endregion
40
41 TestRunner();
42 ~TestRunner() override;
43 TestRunner(const TestRunner& other) = default;
44 TestRunner(TestRunner&& other) noexcept;
45 auto operator=(const TestRunner& other) -> TestRunner&;
46 auto operator=(TestRunner&& other) noexcept -> TestRunner& = default;
47
48
49#pragma region overridden_functions
50
51 auto clone() const -> std::unique_ptr<GameObject> override
52 {
53 return std::make_unique<TestRunner>(*this);
54 }
55
56 auto onUpdate(float dt) -> void override;
57
58 auto endWindow() -> void override
59 {
60 }; // for debug ImGUI
61
62protected:
63 auto systemShowMenu() -> void override;
64
65public:
66 auto onRender() -> void override;
67 auto load(const Stream& stream) -> void override;
68 auto save(Stream& stream) const -> void override;
69
70#pragma endregion
71
72#pragma region TestRunner_Functions
73
74 auto receiveResetKeyPressed(const Message* message) -> Message;
75
76#pragma endregion
77
78private:
79#pragma region member_variables
80
81#pragma endregion
82
83#pragma region helper_functions
84
85#pragma endregion
86
87#pragma region static_variables
88
89#pragma endregion
90
91
92};
93}
sys::Json Stream
Definition AudioObject.h:20
GameObject(std::string typeName, gobj::Type parentType, gobj::Type type)
constructor for gameobject.
Definition GameObject.cpp:23
Type
Definition System.h:20
@ TestRunner
Definition System.h:42
System(const std::string &typeName, Type systemType)
Definition System.cpp:75
static auto getEnum() -> Type
function required by all systems
Definition TestRunner.h:34
auto operator=(TestRunner &&other) noexcept -> TestRunner &=default
auto onUpdate(float dt) -> void override
called once every frame.
Definition TestRunner.cpp:541
~TestRunner() override
Definition TestRunner.cpp:516
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition TestRunner.h:51
auto onRender() -> void override
called every frame after update has been called for every object.
Definition TestRunner.cpp:611
auto operator=(const TestRunner &other) -> TestRunner &
Definition TestRunner.cpp:527
auto systemShowMenu() -> void override
Specific systems should override this function to show their specific menu for the system.
Definition TestRunner.cpp:591
TestRunner()
Definition TestRunner.cpp:455
TestRunner(const TestRunner &other)=default
auto load(const Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition TestRunner.cpp:622
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition TestRunner.h:58
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition TestRunner.cpp:627
auto receiveResetKeyPressed(const Message *message) -> Message
Definition TestRunner.cpp:632
the type of elements in a basic_json container
Definition GameObject.h:32
Definition Message.h:34