Class Component
- Namespace
- AstraEngine.Core
- Assembly
- AstraEngine.Core.dll
An Component is a modular piece of data that represents a single aspect of an entity's behavior or characteristics, such as position, health, or rendering properties.
public abstract class Component
- Inheritance
-
Component
- Derived
- Inherited Members
Properties
Entity
public Entity Entity { get; }
Property Value
Initialized
Whether or not this Component has been initialized
public bool Initialized { get; }
Property Value
IsActive
Whether or not this Component is active
public bool IsActive { get; set; }
Property Value
Methods
Exit()
Executed when this Component exits the game
public virtual void Exit()
Initialize()
Executed when this Component is first active. Runs before Tick.
public virtual void Initialize()
Tick(double)
Apply's a time based changes
public virtual void Tick(double delta)
Parameters
deltadoubleThe amount of time in seconds that has passed