25#pragma region static_functions
36#pragma region overriden_functions
40 return std::make_unique<MainScene>(*
this);
46 auto onUpdate(
float dt) ->
void override;
54 auto save(
Stream& stream)
const ->
void override;
62#pragma region MainScene_functions
66#pragma region messaging_functions
75#pragma region member_variables
79#pragma region helper_functions
83#pragma region static_variables
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 MainScene.h:23
friend auto from_json(const json &j, MainScene &n) -> void
Definition MainScene.cpp:87
auto onUpdate(float dt) -> void override
called once every frame.
Definition MainScene.cpp:52
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition MainScene.cpp:70
auto componentShowMenu() -> void override
Definition MainScene.h:43
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition MainScene.cpp:75
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition MainScene.h:48
auto operator=(MainScene &&other) noexcept -> MainScene &=default
auto onRender() -> void override
called every frame after update has been called for every object.
Definition MainScene.cpp:57
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition MainScene.h:38
auto onEnterEngine() -> void override
hook that is called when a GameObject enters the Engine tree.
Definition MainScene.cpp:61
~MainScene() override=default
friend auto to_json(json &j, const MainScene &n) -> void
Definition MainScene.cpp:80
MainScene()
Definition MainScene.cpp:31
auto receivePauseKeyPressed(const Message *message) -> Message
Resets the table to prepare it for a new game.
Definition MainScene.cpp:95
auto operator=(const MainScene &) -> MainScene &=default
auto linkMessages() -> void
Definition MainScene.cpp:107