17 std::weak_ptr<GameObject> g);
std::shared_ptr< GameObject > GetGameObject()
Gets a shared ptr reference to this component's GameObject.
Definition: Component.cpp:9
virtual void Update()=0
Updates this component.
void SetParentGameObject(std::weak_ptr< GameObject > g)
Sets the given GameObject as this component's parent.
Definition: Component.cpp:3
Class representing a component of a GameObject.
Definition: Component.hpp:12
A GameObject class.
Definition: GameObject.hpp:14
virtual void Init()
Initializes this component.
Definition: Component.cpp:7
std::weak_ptr< GameObject > gameObject
This component's parent GameObject.
Definition: Component.hpp:33