55 auto onUpdate(
float dt) ->
void override;
62 auto save(
Stream& stream)
const ->
void override;
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
The component tthat holds the texture behind everything.
Definition Background.h:41
Background()
Definition Background.cpp:38
friend auto from_json(const json &j, Background &p) -> void
Definition Background.cpp:84
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition Background.cpp:43
Background(const Background &)=default
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition Background.cpp:67
friend auto to_json(json &j, const Background &p) -> void
Definition Background.cpp:77
auto operator=(const Background &) -> Background &=default
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition Background.h:57
Background(Background &&other) noexcept=default
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition Background.cpp:72
~Background() override=default
auto onUpdate(float dt) -> void override
called once every frame.
Definition Background.cpp:48
auto componentShowMenu() -> void override
Definition Background.h:52
auto operator=(Background &&other) noexcept -> Background &=default
auto onRender() -> void override
called every frame after update has been called for every object.
Definition Background.cpp:63
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