#include <ScriptComponent.hpp>
|
void | Input () override |
| Called once per frame to handle any new input.
|
|
void | Update (float dt) override |
|
void | Render () override |
|
| ScriptComponent () |
|
void | SetGameObject (std::weak_ptr< GameObject > ent) |
| Sets the GameObject this component is attached to.
|
|
std::shared_ptr< GameObject > | GetGameObject () |
| Retrieves the GameObject this component is attached to, behind a shared pointer.
|
|
template<typename T > |
std::shared_ptr< T > | GetComponent () |
| Alias for GetGameObject()->GetComponent<T>() , for easier scripting.
|
|
|
static ComponentType | GetType () |
|
static ComponentType | GetType () |
| Returns the type of this component to make querying GetComponent easier.
|
|
static ComponentType | GetType () |
| Returns the type of this component to make querying GetComponent easier.
|
|
Trampoline class which allows Python code to override ScriptComponent
methods, and for C++ code to call those overridden methods instead of ScriptComponent
◆ Input()
void PyScriptComponent::Input |
( |
| ) |
|
|
overridevirtual |
Called once per frame to handle any new input.
Reimplemented from ScriptComponent.
◆ Render()
void PyScriptComponent::Render |
( |
| ) |
|
|
overridevirtual |
Called once per frame to render any necessary parts of this component to the screen
Reimplemented from ScriptComponent.
◆ Update()
void PyScriptComponent::Update |
( |
float | dt | ) |
|
|
overridevirtual |
Called once per frame for any timing specific logic
- Parameters
-
deltaTime | The tick rate of the game, in seconds. Useful for things like velocity calculations |
Reimplemented from ScriptComponent.
The documentation for this class was generated from the following files: