Entitas Redux
JCMG.EntitasRedux.IEntity Interface Reference
Inheritance diagram for JCMG.EntitasRedux.IEntity:
JCMG.EntitasRedux.IAERC JCMG.EntitasRedux.Entity

Public Member Functions

void Initialize (int creationIndex, int totalComponents, Stack< IComponent >[] componentPools, ContextInfo contextInfo=null, IAERC aerc=null)
 
void Reactivate (int creationIndex)
 
void AddComponent (int index, IComponent component)
 
void RemoveComponent (int index)
 
void ReplaceComponent (int index, IComponent component)
 
IComponent GetComponent (int index)
 
IComponent[] GetComponents ()
 
int[] GetComponentIndices ()
 
bool HasComponent (int index)
 
bool HasComponents (int[] indices)
 
bool HasAnyComponent (int[] indices)
 
void RemoveAllComponents ()
 
Stack< IComponentGetComponentPool (int index)
 
IComponent CreateComponent (int index, Type type)
 
CreateComponent< T > (int index)
 
void Destroy ()
 
void InternalDestroy ()
 
void RemoveAllOnEntityReleasedHandlers ()
 
- Public Member Functions inherited from JCMG.EntitasRedux.IAERC
void Retain (object owner)
 
void Release (object owner)
 

Properties

int TotalComponents [get]
 
int CreationIndex [get]
 
bool IsEnabled [get]
 
Stack< IComponent >[] ComponentPools [get]
 
ContextInfo ContextInfo [get]
 
IAERC AERC [get]
 
- Properties inherited from JCMG.EntitasRedux.IAERC
int RetainCount [get]
 

Events

EntityComponentChanged OnComponentAdded
 
EntityComponentChanged OnComponentRemoved
 
EntityComponentReplaced OnComponentReplaced
 
EntityEvent OnEntityReleased
 
EntityEvent OnDestroyEntity
 

Detailed Description

Definition at line 31 of file IEntity.cs.

Member Function Documentation

◆ AddComponent()

void JCMG.EntitasRedux.IEntity.AddComponent ( int  index,
IComponent  component 
)

Implemented in JCMG.EntitasRedux.Entity.

◆ CreateComponent()

IComponent JCMG.EntitasRedux.IEntity.CreateComponent ( int  index,
Type  type 
)

Implemented in JCMG.EntitasRedux.Entity.

◆ CreateComponent< T >()

Implemented in JCMG.EntitasRedux.Entity.

Type Constraints
T :new() 

◆ Destroy()

void JCMG.EntitasRedux.IEntity.Destroy ( )

Implemented in JCMG.EntitasRedux.Entity.

◆ GetComponent()

IComponent JCMG.EntitasRedux.IEntity.GetComponent ( int  index)

Implemented in JCMG.EntitasRedux.Entity.

◆ GetComponentIndices()

int [] JCMG.EntitasRedux.IEntity.GetComponentIndices ( )

Implemented in JCMG.EntitasRedux.Entity.

◆ GetComponentPool()

Stack<IComponent> JCMG.EntitasRedux.IEntity.GetComponentPool ( int  index)

Implemented in JCMG.EntitasRedux.Entity.

◆ GetComponents()

IComponent [] JCMG.EntitasRedux.IEntity.GetComponents ( )

Implemented in JCMG.EntitasRedux.Entity.

◆ HasAnyComponent()

bool JCMG.EntitasRedux.IEntity.HasAnyComponent ( int[]  indices)

Implemented in JCMG.EntitasRedux.Entity.

◆ HasComponent()

bool JCMG.EntitasRedux.IEntity.HasComponent ( int  index)

Implemented in JCMG.EntitasRedux.Entity.

◆ HasComponents()

bool JCMG.EntitasRedux.IEntity.HasComponents ( int[]  indices)

Implemented in JCMG.EntitasRedux.Entity.

◆ Initialize()

void JCMG.EntitasRedux.IEntity.Initialize ( int  creationIndex,
int  totalComponents,
Stack< IComponent >[]  componentPools,
ContextInfo  contextInfo = null,
IAERC  aerc = null 
)

Implemented in JCMG.EntitasRedux.Entity.

◆ InternalDestroy()

void JCMG.EntitasRedux.IEntity.InternalDestroy ( )

Implemented in JCMG.EntitasRedux.Entity.

◆ Reactivate()

void JCMG.EntitasRedux.IEntity.Reactivate ( int  creationIndex)

Implemented in JCMG.EntitasRedux.Entity.

◆ RemoveAllComponents()

void JCMG.EntitasRedux.IEntity.RemoveAllComponents ( )

Implemented in JCMG.EntitasRedux.Entity.

◆ RemoveAllOnEntityReleasedHandlers()

void JCMG.EntitasRedux.IEntity.RemoveAllOnEntityReleasedHandlers ( )

Implemented in JCMG.EntitasRedux.Entity.

◆ RemoveComponent()

void JCMG.EntitasRedux.IEntity.RemoveComponent ( int  index)

Implemented in JCMG.EntitasRedux.Entity.

◆ ReplaceComponent()

void JCMG.EntitasRedux.IEntity.ReplaceComponent ( int  index,
IComponent  component 
)

Implemented in JCMG.EntitasRedux.Entity.

Property Documentation

◆ AERC

IAERC JCMG.EntitasRedux.IEntity.AERC
get

Definition at line 39 of file IEntity.cs.

◆ ComponentPools

Stack<IComponent> [] JCMG.EntitasRedux.IEntity.ComponentPools
get

Definition at line 37 of file IEntity.cs.

◆ ContextInfo

ContextInfo JCMG.EntitasRedux.IEntity.ContextInfo
get

Definition at line 38 of file IEntity.cs.

◆ CreationIndex

int JCMG.EntitasRedux.IEntity.CreationIndex
get

Definition at line 34 of file IEntity.cs.

◆ IsEnabled

bool JCMG.EntitasRedux.IEntity.IsEnabled
get

Definition at line 35 of file IEntity.cs.

◆ TotalComponents

int JCMG.EntitasRedux.IEntity.TotalComponents
get

Definition at line 33 of file IEntity.cs.

Event Documentation

◆ OnComponentAdded

EntityComponentChanged JCMG.EntitasRedux.IEntity.OnComponentAdded

Definition at line 41 of file IEntity.cs.

◆ OnComponentRemoved

EntityComponentChanged JCMG.EntitasRedux.IEntity.OnComponentRemoved

Definition at line 42 of file IEntity.cs.

◆ OnComponentReplaced

EntityComponentReplaced JCMG.EntitasRedux.IEntity.OnComponentReplaced

Definition at line 43 of file IEntity.cs.

◆ OnDestroyEntity

EntityEvent JCMG.EntitasRedux.IEntity.OnDestroyEntity

Definition at line 45 of file IEntity.cs.

◆ OnEntityReleased

EntityEvent JCMG.EntitasRedux.IEntity.OnEntityReleased

Definition at line 44 of file IEntity.cs.


The documentation for this interface was generated from the following file: