32 auto
onUpdate(
float dt) ->
void override;
36 auto
save(
Stream& stream) const ->
void override;
38 auto
add(const std::weak_ptr<
th::AnyAction>& newAction) ->
void;
sys::Json Stream
Definition AudioObject.h:20
The base class for components, holding all of their shared All components should inherit from this.
auto operator=(const ActionProxy &) -> ActionProxy &=default
std::vector< std::weak_ptr< th::AnyAction > > allActions
Definition ActionProxy.h:41
ActionProxy(ActionProxy &&other) noexcept=default
ActionProxy(const ActionProxy &)=default
auto operator=(ActionProxy &&other) noexcept -> ActionProxy &=default
ActionProxy()
Definition ActionProxy.cpp:20
auto add(const std::weak_ptr< th::AnyAction > &newAction) -> void
Definition ActionProxy.cpp:82
auto save(Stream &stream) const -> void override
Implementations will load the state of a GameObject to a th::Json object.
Definition ActionProxy.cpp:77
auto endWindow() -> void override
currently unused, but intended to but was assumed to be necessary for a proper ImGui editor
Definition ActionProxy.cpp:64
auto load(Stream &stream) -> void override
Implementations will load the state of a GameObject from a th::Json Object.
Definition ActionProxy.cpp:72
auto parentTo(GameObject *newParent) -> bool override
Sets the GameObject as a child of another GameObject.
Definition ActionProxy.cpp:25
auto clone() const -> std::unique_ptr< GameObject > override
makes a copy a GameObject even if it's held polymorphically
Definition ActionProxy.cpp:49
auto onUpdate(float dt) -> void override
called once every frame.
Definition ActionProxy.cpp:59
~ActionProxy() override=default
auto componentShowMenu() -> void override
Definition ActionProxy.cpp:54
auto onRender() -> void override
called every frame after update has been called for every object.
Definition ActionProxy.cpp:68
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 Factory.cpp:59