Table of Contents

Class AComponent

Namespace
Alis.Core.Ecs.Component
Assembly
Alis.dll

The component class

public abstract class AComponent : IComponent<GameObject>, IEnabled, IIdentifier, IRuntime

Inheritance

Derived

Implements

Inherited Members

Properties

Context

Gets or sets the value of the game object

[JsonPropertyName("_Context_", true, true)]
public Context Context { get; }

Property Value

Context

GameObject

Gets or sets the value of the game object

[JsonPropertyName("_GameObject_", true, true)]
public GameObject GameObject { get; set; }

Property Value

GameObject

Id

Gets or sets the value of the id

[JsonPropertyName("_Id_")]
public string Id { get; set; }

Property Value

string

IsEnable

Gets or sets the value of the is enable

[JsonPropertyName("_IsEnable_")]
public bool IsEnable { get; set; }

Property Value

bool

Name

Gets or sets the value of the name

[JsonPropertyName("_Name_")]
public string Name { get; set; }

Property Value

string

Tag

Gets or sets the value of the tag

[JsonPropertyName("_Tag_")]
public string Tag { get; set; }

Property Value

string

Methods

Attach(GameObject)

Attaches the game object

public void Attach(GameObject gameObject)

Parameters

gameObject GameObject

The game object

OnAfterFixedUpdate()

Ons the after fixed update

public virtual void OnAfterFixedUpdate()

OnAfterUpdate()

Ons the after update

public virtual void OnAfterUpdate()

OnAwake()

Ons the awake

public virtual void OnAwake()

OnBeforeFixedUpdate()

Ons the before fixed update

public virtual void OnBeforeFixedUpdate()

OnBeforeUpdate()

Ons the before update

public virtual void OnBeforeUpdate()

OnCalculate()

Ons the calculate

public virtual void OnCalculate()

OnCollisionEnter(GameObject)

Ons the collision enter using the specified game object

public virtual void OnCollisionEnter(GameObject gameObject)

Parameters

gameObject GameObject

The game object

OnCollisionExit(GameObject)

Ons the collision exit using the specified game object

public virtual void OnCollisionExit(GameObject gameObject)

Parameters

gameObject GameObject

The game object

OnCollisionStay(GameObject)

Ons the collision stay using the specified game object

public virtual void OnCollisionStay(GameObject gameObject)

Parameters

gameObject GameObject

The game object

OnDestroy()

Ons the destroy

public virtual void OnDestroy()

OnDisable()

Ons the disable

public virtual void OnDisable()

OnDispatchEvents()

Ons the dispatch events

public virtual void OnDispatchEvents()

OnDraw()

Ons the draw

public virtual void OnDraw()

OnEnable()

Ons the enable

public virtual void OnEnable()

OnExit()

Ons the exit

public virtual void OnExit()

OnFixedUpdate()

Ons the fixed update

public virtual void OnFixedUpdate()

OnGui()

Ons the gui

public virtual void OnGui()

OnInit()

Ons the init

public virtual void OnInit()

OnPressDownKey(KeyCodes)

Ons the press down key using the specified key

public virtual void OnPressDownKey(KeyCodes key)

Parameters

key KeyCodes

The key

OnPressKey(KeyCodes)

Ons the press key using the specified key

public virtual void OnPressKey(KeyCodes key)

Parameters

key KeyCodes

The key

OnReleaseKey(KeyCodes)

Ons the release key using the specified key

public virtual void OnReleaseKey(KeyCodes key)

Parameters

key KeyCodes

The key

OnReset()

Ons the reset

public virtual void OnReset()

OnStart()

Ons the start

public virtual void OnStart()

OnStop()

Ons the stop

public virtual void OnStop()

OnTriggerEnter(GameObject)

Ons the trigger enter using the specified game object

public virtual void OnTriggerEnter(GameObject gameObject)

Parameters

gameObject GameObject

The game object

OnTriggerExit(GameObject)

Ons the trigger exit using the specified game object

public virtual void OnTriggerExit(GameObject gameObject)

Parameters

gameObject GameObject

The game object

OnTriggerStay(GameObject)

Ons the trigger stay using the specified game object

public virtual void OnTriggerStay(GameObject gameObject)

Parameters

gameObject GameObject

The game object

OnUpdate()

Ons the update

public virtual void OnUpdate()

See Also