49 auto onUpdate(
float dt) ->
void override;
55 auto load(
const Stream& stream) ->
void override;
56 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 that belongs to the entity that all entities are children to, inside a scene.
Definition Backdrop.h:29
Backdrop(Backdrop &&other) noexcept=default
friend auto from_json(const json &j, Backdrop &b) -> void
Definition Backdrop.cpp:78
auto operator=(Backdrop &&other) noexcept -> Backdrop &=default
static auto getEnum() -> ComponentTypeEnum
Definition Backdrop.h:31
auto onRender() -> void override
called every frame after update has been called for every object.
Definition Backdrop.cpp:57
auto load(const Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition Backdrop.cpp:61
auto operator=(const Backdrop &) -> Backdrop &=default
Backdrop(const Backdrop &)=default
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition Backdrop.h:51
static auto bindLuaTypes(sol::state &lua) -> void
Definition Backdrop.cpp:28
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition Backdrop.cpp:66
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition Backdrop.cpp:37
auto onUpdate(float dt) -> void override
called once every frame.
Definition Backdrop.cpp:42
friend auto to_json(json &j, const Backdrop &b) -> void
Definition Backdrop.cpp:71
auto componentShowMenu() -> void override
Definition Backdrop.h:46
Backdrop()
Definition Backdrop.cpp:32
~Backdrop() override=default
ComponentTypeEnum
This enum lists out every type of component we have.
Definition Component.h:39
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:24