25#pragma region static_functions
36#pragma region overriden_functions
40 return std::make_unique<NewComponentStub>(*
this);
48 auto onUpdate(
float dt) ->
void override;
55 auto save(
Stream& stream)
const ->
void override;
63#pragma region newComponentStub_functions
67#pragma region messaging_functions
73#pragma region member_variables
77#pragma region helper_functions
81#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 NewComponentStub.h:23
auto onUpdate(float dt) -> void override
called once every frame.
Definition NewComponentStub.cpp:44
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition NewComponentStub.cpp:58
auto operator=(const NewComponentStub &) -> NewComponentStub &=default
auto linkMessages() -> void
Definition NewComponentStub.cpp:78
NewComponentStub()
Definition NewComponentStub.cpp:23
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition NewComponentStub.cpp:53
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition NewComponentStub.h:50
friend auto from_json(const json &j, NewComponentStub &n) -> void
Definition NewComponentStub.cpp:70
auto onRender() -> void override
called every frame after update has been called for every object.
Definition NewComponentStub.cpp:49
~NewComponentStub() override=default
auto operator=(NewComponentStub &&other) noexcept -> NewComponentStub &=default
friend auto to_json(json &j, const NewComponentStub &n) -> void
Definition NewComponentStub.cpp:63
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition NewComponentStub.h:38