25#pragma region static_functions
36#pragma region overriden_functions
40 return std::make_unique<PlayerCountScene>(*
this);
46 auto onUpdate(
float dt) ->
void override;
53 auto load(
const Stream& stream) ->
void override;
54 auto save(
Stream& stream)
const ->
void override;
62#pragma region PlayerCountScene_functions
66#pragma region messaging_functions
83#pragma region member_variables
89#pragma region helper_functions
93#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 PlayerCountScene.h:23
auto linkMessages() -> void
Definition PlayerCountScene.cpp:95
auto onUpdate(float dt) -> void override
called once every frame.
Definition PlayerCountScene.cpp:56
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition PlayerCountScene.cpp:75
friend auto from_json(const json &j, PlayerCountScene &n) -> void
Definition PlayerCountScene.cpp:87
auto countButtonPressed(const Message *message) -> Message
Activates whenever a player count is selected.
Definition PlayerCountScene.cpp:114
auto load(const Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition PlayerCountScene.cpp:70
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition PlayerCountScene.h:38
auto onRender() -> void override
called every frame after update has been called for every object.
Definition PlayerCountScene.cpp:61
auto componentShowMenu() -> void override
Definition PlayerCountScene.h:43
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition PlayerCountScene.h:48
int playerCount
Definition PlayerCountScene.h:85
auto operator=(const PlayerCountScene &) -> PlayerCountScene &=default
auto operator=(PlayerCountScene &&other) noexcept -> PlayerCountScene &=default
~PlayerCountScene() override=default
friend auto to_json(json &j, const PlayerCountScene &n) -> void
Definition PlayerCountScene.cpp:80
PlayerCountScene()
Definition PlayerCountScene.cpp:35
auto onEnterEngine() -> void override
hook that is called when a GameObject enters the Engine tree.
Definition PlayerCountScene.cpp:65
auto receivePauseKeyPressed(const Message *message) -> Message
Takes the player back to Main Menu.
Definition PlayerCountScene.cpp:134