C# Class Entitas.Context

Show file Open project: sschmid/Entitas-CSharp Class Usage Examples

Public Methods

Method Description
AddEntityIndex ( string name, IEntityIndex entityIndex ) : void
ClearComponentPool ( int index ) : void
ClearComponentPools ( ) : void
ClearGroups ( ) : void
Context ( int totalComponents ) : System
Context ( int totalComponents, int startCreationIndex, ContextInfo contextInfo ) : System
CreateEntity ( ) : Entity
DeactivateAndRemoveEntityIndices ( ) : void
DestroyAllEntities ( ) : void
DestroyEntity ( Entity entity ) : void
GetEntities ( ) : Entitas.Entity[]
GetEntityIndex ( string name ) : IEntityIndex
GetGroup ( IMatcher matcher ) : Group
HasEntity ( Entity entity ) : bool
RemoveCoins ( ) : void
RemoveISomeInterface ( ) : void
RemoveOtherContext ( ) : void
RemoveUser ( ) : void
ReplaceCoins ( int newCount ) : Entity
ReplaceISomeInterface ( ISomeInterface newValue ) : Entity
ReplaceOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
ReplaceUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
ReplaceUser ( string newName, int newAge ) : Entity
Reset ( ) : void
ResetCreationIndex ( ) : void
SetCoins ( int newCount ) : Entity
SetISomeInterface ( ISomeInterface newValue ) : Entity
SetOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
SetUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
SetUser ( string newName, int newAge ) : Entity
ToString ( ) : string

Private Methods

Method Description
onEntityReleased ( Entity entity ) : void
updateGroupsComponentAddedOrRemoved ( Entity entity, int index, IComponent component ) : void
updateGroupsComponentReplaced ( Entity entity, int index, IComponent previousComponent, IComponent newComponent ) : void

Method Details

AddEntityIndex() public method

public AddEntityIndex ( string name, IEntityIndex entityIndex ) : void
name string
entityIndex IEntityIndex
return void

ClearComponentPool() public method

public ClearComponentPool ( int index ) : void
index int
return void

ClearComponentPools() public method

public ClearComponentPools ( ) : void
return void

ClearGroups() public method

public ClearGroups ( ) : void
return void

Context() public method

public Context ( int totalComponents ) : System
totalComponents int
return System

Context() public method

public Context ( int totalComponents, int startCreationIndex, ContextInfo contextInfo ) : System
totalComponents int
startCreationIndex int
contextInfo ContextInfo
return System

CreateEntity() public method

public CreateEntity ( ) : Entity
return Entity

DeactivateAndRemoveEntityIndices() public method

public DeactivateAndRemoveEntityIndices ( ) : void
return void

DestroyAllEntities() public method

public DestroyAllEntities ( ) : void
return void

DestroyEntity() public method

public DestroyEntity ( Entity entity ) : void
entity Entity
return void

GetEntities() public method

public GetEntities ( ) : Entitas.Entity[]
return Entitas.Entity[]

GetEntityIndex() public method

public GetEntityIndex ( string name ) : IEntityIndex
name string
return IEntityIndex

GetGroup() public method

public GetGroup ( IMatcher matcher ) : Group
matcher IMatcher
return Group

HasEntity() public method

public HasEntity ( Entity entity ) : bool
entity Entity
return bool

RemoveCoins() public method

public RemoveCoins ( ) : void
return void

RemoveISomeInterface() public method

public RemoveISomeInterface ( ) : void
return void

RemoveOtherContext() public method

public RemoveOtherContext ( ) : void
return void

RemoveUser() public method

public RemoveUser ( ) : void
return void

ReplaceCoins() public method

public ReplaceCoins ( int newCount ) : Entity
newCount int
return Entity

ReplaceISomeInterface() public method

public ReplaceISomeInterface ( ISomeInterface newValue ) : Entity
newValue ISomeInterface
return Entity

ReplaceOtherContext() public method

public ReplaceOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
return Entity

ReplaceUser() public method

public ReplaceUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
return Entity

ReplaceUser() public method

public ReplaceUser ( string newName, int newAge ) : Entity
newName string
newAge int
return Entity

Reset() public method

public Reset ( ) : void
return void

ResetCreationIndex() public method

public ResetCreationIndex ( ) : void
return void

SetCoins() public method

public SetCoins ( int newCount ) : Entity
newCount int
return Entity

SetISomeInterface() public method

public SetISomeInterface ( ISomeInterface newValue ) : Entity
newValue ISomeInterface
return Entity

SetOtherContext() public method

public SetOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
return Entity

SetUser() public method

public SetUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
return Entity

SetUser() public method

public SetUser ( string newName, int newAge ) : Entity
newName string
newAge int
return Entity

ToString() public method

public ToString ( ) : string
return string