Table of Contents

Interface IComponent<T>

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

The component interface

public interface IComponent<T> : IEnabled, IIdentifier, IRuntime

Type Parameters

T

Implements

Properties

GameObject

Gets or sets the value of the game object

T GameObject { get; set; }

Property Value

T

Methods

Attach(T)

Attaches the game object

void Attach(T gameObject)

Parameters

gameObject T

The game object

OnCollisionEnter(T)

Ons the collision enter using the specified game object

void OnCollisionEnter(T gameObject)

Parameters

gameObject T

The game object

OnCollisionExit(T)

Ons the collision exit using the specified game object

void OnCollisionExit(T gameObject)

Parameters

gameObject T

The game object

OnPressDownKey(KeyCodes)

Ons the press down key using the specified key

void OnPressDownKey(KeyCodes key)

Parameters

key KeyCodes

The key

OnPressKey(KeyCodes)

Ons the press key using the specified key

void OnPressKey(KeyCodes key)

Parameters

key KeyCodes

The key

OnReleaseKey(KeyCodes)

Ons the release key using the specified key

void OnReleaseKey(KeyCodes key)

Parameters

key KeyCodes

The key