#include <iBehaviourComponent.h>
Inherits igor::iEntityComponent.
◆ iBehaviourComponent()
igor::iBehaviourComponent::iBehaviourComponent |
( |
| ) |
|
◆ addBehaviour()
void igor::iBehaviourComponent::addBehaviour |
( |
const iBehaviourDelegate & |
delegate, |
|
|
const std::any & |
userData, |
|
|
const iaString & |
name, |
|
|
uint8 |
priority |
|
) |
| |
adds behaviour
- Parameters
-
behaviour | the behaviour to be added |
userData | user data added to behaviour |
name | the name of the behaviour |
priority | execution priority (low = 0, default = 100, high = 255) |
◆ createInstance()
creates instance of this component type
◆ execute()
void igor::iBehaviourComponent::execute |
( |
| ) |
|
◆ getBehaviors()
const std::vector< iBehaviourData > & igor::iBehaviourComponent::getBehaviors |
( |
| ) |
const |
◆ getInfo()
std::vector< iaString > igor::iBehaviourComponent::getInfo |
( |
| ) |
const |
|
overridevirtual |
◆ getTypeName()
const iaString & igor::iBehaviourComponent::getTypeName |
( |
| ) |
|
|
static |
- Returns
- type name of component
◆ removeBehaviour()
void igor::iBehaviourComponent::removeBehaviour |
( |
const iBehaviourDelegate & |
delegate | ) |
|
removes behaviour from entity
- Parameters
-
behaviour | the behaviour to be removed |
The documentation for this class was generated from the following files: