4 #include "../Core/GameObject.h" std::string getID()
A function to set the components type ID.
Definition: Component.h:66
A class that handles the components.
Definition: Component.h:13
virtual void onAwake()
A virtual function for the componets awake.
Definition: Component.cpp:12
virtual void onDestroy()
A virtual function for the componets destroy.
Definition: Component.cpp:27
virtual void onRender()
A virtual function for the componets render.
Definition: Component.cpp:22
Contains details and functions for the game object.
Definition: GameObject.h:15
std::weak_ptr< GameObject > gameObject
A weak pointer to the linked game object.
Definition: Component.h:70
void setDestroyed(bool inDestroyed)
A function to set the componets destroyed boolean.
Definition: Component.h:54
virtual void onUpdate()
A virtual function for the componets update.
Definition: Component.cpp:17
std::weak_ptr< GameObject > getGameObject()
A function to get the game object linked with the component.
Definition: Component.cpp:7
Contains details and functions for the application.
Definition: Application.h:17
std::string id
The ID of the component type.
Definition: Component.h:76
bool destroyed
A boolean for if the component has been destroyed.
Definition: Component.h:72
virtual ~Component()
A virtual destructor.
Definition: Component.cpp:3
bool getDestroyed()
A function to get the componets destroyed boolean.
Definition: Component.h:60