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 auto onRender() -> void override;
62 auto load(Stream& stream) -> void override;
63 auto save(Stream& stream) const -> void override;
64
65#pragma endregion
66
67#pragma region TestRunner_Functions
68
69 auto receiveResetKeyPressed(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
87};
88}
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:35
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:518
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition TestRunner.cpp:579
~TestRunner() override
Definition TestRunner.cpp:493
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:568
auto operator=(const TestRunner &other) -> TestRunner &
Definition TestRunner.cpp:504
TestRunner()
Definition TestRunner.cpp:435
TestRunner(const TestRunner &other)=default
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:584
auto receiveResetKeyPressed(const Message *message) -> Message
Definition TestRunner.cpp:589
the type of elements in a basic_json container
Definition GameObject.h:32
Definition Message.h:34