Komodo Engine
C PROJECT_LOGO=
Komodo.Core.ECS.Components.BehaviorComponent Class Referenceabstract

Abstract class defining all behaviors. A class derived from BehaviorComponent is the main way scripting is achieved in Komodo. More...

Inheritance diagram for Komodo.Core.ECS.Components.BehaviorComponent:
Komodo.Core.ECS.Components.Component

Public Member Functions

virtual void Initialize ()
 Virtual method initializing a BehaviorComponent. More...
 
abstract void Update (GameTime gameTime)
 Abstract method for updating a BehaviorComponent. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Komodo.Core.ECS.Components.Component
 Component (bool isEnabled=true, Entity parent=null)
 
- Properties inherited from Komodo.Core.ECS.Components.Component
GameGame [get]
 Each Component maintains a reference to the Komodo.Core.Game instance. More...
 
Guid ID [get]
 Unique identifier for the Component. More...
 
bool IsEnabled [get, set]
 Enabled Components are managed by their corresponding Komodo.Core.ECS.Systems.ISystem, otherwise the Component is ignored. More...
 
bool IsInitialized [get, set]
 Uninitialized Components are initialized by their corresponding Komodo.Core.ECS.Systems.ISystem, otherwise the Component is initialized on the next Komodo.Core.ECS.Systems.ISystem.Initialize, Komodo.Core.ECS.Systems.ISystem.PreUpdate, or Komodo.Core.ECS.Systems.ISystem.PostUpdate methods. More...
 
Entity Parent [get, set]
 Each Component belongs to a Komodo.Core.ECS.Entities.Entity and maintains a reference to the parent Komodo.Core.ECS.Entities.Entity. More...
 
Vector3 Position [get, set]
 Each Component has a position relative to their Parent. More...
 
Vector3?? WorldPosition [get]
 The sum of Position and the Parent's Komodo.Core.ECS.Entities.Entity.Position, representing the Component's position in world space. More...
 
Vector3?? Rotation [get, set]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.Rotation. More...
 
Matrix?? RotationMatrix [get]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.RotationMatrix. More...
 
Quaternion?? RotationQuaternion [get]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.RotationQuaternion. More...
 
Vector3?? Scale [get, set]
 Derived from the Parent's Komodo.Core.ECS.Entities.Entity.Scale. More...
 

Detailed Description

Abstract class defining all behaviors. A class derived from BehaviorComponent is the main way scripting is achieved in Komodo.

Member Function Documentation

◆ Initialize()

virtual void Komodo.Core.ECS.Components.BehaviorComponent.Initialize ( )
virtual

Virtual method initializing a BehaviorComponent.

◆ Update()

abstract void Komodo.Core.ECS.Components.BehaviorComponent.Update ( GameTime  gameTime)
pure virtual

Abstract method for updating a BehaviorComponent.

Parameters
gameTimeTime passed since last Update