GameKit  0.0.1a
C++ gamedev tools
Public Member Functions | Private Attributes | List of all members
gk::BehaviourComponent Class Reference

#include <BehaviourComponent.hpp>

Public Member Functions

template<typename T , typename... Args>
T & addBehaviour (const char *name, Args &&...args)
 
void update (SceneObject &object)
 

Private Attributes

std::unordered_map< std::string, std::unique_ptr< Behaviour > > m_behaviours
 

Detailed Description

Definition at line 23 of file BehaviourComponent.hpp.

Member Function Documentation

§ addBehaviour()

template<typename T , typename... Args>
T& gk::BehaviourComponent::addBehaviour ( const char *  name,
Args &&...  args 
)
inline

Definition at line 26 of file BehaviourComponent.hpp.

§ update()

void gk::BehaviourComponent::update ( SceneObject object)
inline

Definition at line 32 of file BehaviourComponent.hpp.

Member Data Documentation

§ m_behaviours

std::unordered_map<std::string, std::unique_ptr<Behaviour> > gk::BehaviourComponent::m_behaviours
private

Definition at line 39 of file BehaviourComponent.hpp.


The documentation for this class was generated from the following file: