|
Platformer
Platformer
|
A class for adding a function to the given component's update loop. More...
#include <LambdaComponent.hpp>


Public Member Functions | |
| LambdaComponent (std::function< void(GameObject &)> fun) | |
| Construts a new lambda component. More... | |
| virtual void | Update () |
| Updates this component. | |
Public Member Functions inherited from Component | |
| void | SetParentGameObject (std::weak_ptr< GameObject > g) |
| Sets the given GameObject as this component's parent. More... | |
| virtual void | Init () |
| Initializes this component. | |
| std::shared_ptr< GameObject > | GetGameObject () |
| Gets a shared ptr reference to this component's GameObject. More... | |
Private Attributes | |
| std::function< void(GameObject &)> | fun |
| The function to be called when updating. | |
Additional Inherited Members | |
Protected Attributes inherited from Component | |
| std::weak_ptr< GameObject > | gameObject |
| This component's parent GameObject. | |
A class for adding a function to the given component's update loop.
| LambdaComponent::LambdaComponent | ( | std::function< void(GameObject &)> | fun | ) |
Construts a new lambda component.
| fun | The function to be called when updating |
1.8.14