1 #ifndef LAMBDACOMPONENT_HPP 2 #define LAMBDACOMPONENT_HPP 6 #include "Component.hpp" 20 std::function<void(GameObject&)>
fun;
A class for adding a function to the given component's update loop.
Definition: LambdaComponent.hpp:9
std::function< void(GameObject &)> fun
The function to be called when updating.
Definition: LambdaComponent.hpp:20
LambdaComponent(std::function< void(GameObject &)> fun)
Construts a new lambda component.
Definition: LambdaComponent.cpp:3
Class representing a component of a GameObject.
Definition: Component.hpp:12
A GameObject class.
Definition: GameObject.hpp:14
virtual void Update()
Updates this component.
Definition: LambdaComponent.cpp:5