Table of Contents

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

The Entity that this Component is attached to.

public Entity Entity { get; }

Property Value

Entity

Initialized

Whether or not this Component has been initialized

public bool Initialized { get; }

Property Value

bool

IsActive

Whether or not this Component is active

public bool IsActive { get; set; }

Property Value

bool

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

delta double

The amount of time in seconds that has passed