Shkyera Engine
Easy to use, game engine for Python
|
A base class representing a component attached to a game object. More...
#include <Component.hpp>
Public Member Functions | |
Component (std::shared_ptr< GameObject > object) | |
Constructor to initialize a component with a shared pointer to a game object. More... | |
std::shared_ptr< GameObject > | getObject () |
Get the shared pointer to the game object to which this component is attached. More... | |
Protected Attributes | |
std::shared_ptr< GameObject > | _object |
The game object to which this component is attached. More... | |
A base class representing a component attached to a game object.
Components are building blocks for game objects and can be customized for various functionalities.
shkyera::Component::Component | ( | std::shared_ptr< GameObject > | object | ) |
Constructor to initialize a component with a shared pointer to a game object.
object | A shared pointer to the game object to which this component is attached. |
std::shared_ptr< GameObject > shkyera::Component::getObject | ( | ) |
Get the shared pointer to the game object to which this component is attached.
|
protected |
The game object to which this component is attached.