GameKit  0.0.1a
C++ gamedev tools
BehaviourController.cpp
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: BehaviourController.cpp
5  *
6  * Description:
7  *
8  * Created: 26/01/2018 01:26:06
9  *
10  * Author: Quentin Bazin, <quent42340@gmail.com>
11  *
12  * =====================================================================================
13  */
17 
18 namespace gk {
19 
21  if(object.has<BehaviourComponent>() && (!object.has<LifetimeComponent>() || !object.get<LifetimeComponent>().dead(object))) {
22  object.get<BehaviourComponent>().update(object);
23  }
24 }
25 
26 } // namespace gk
27 
void update(SceneObject &object) override