C# Class Entitas.Context

Afficher le fichier Open project: sschmid/Entitas-CSharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddEntityIndex ( string name, IEntityIndex entityIndex ) : void
name string
entityIndex IEntityIndex
Résultat void

ClearComponentPool() public méthode

public ClearComponentPool ( int index ) : void
index int
Résultat void

ClearComponentPools() public méthode

public ClearComponentPools ( ) : void
Résultat void

ClearGroups() public méthode

public ClearGroups ( ) : void
Résultat void

Context() public méthode

public Context ( int totalComponents ) : System
totalComponents int
Résultat System

Context() public méthode

public Context ( int totalComponents, int startCreationIndex, ContextInfo contextInfo ) : System
totalComponents int
startCreationIndex int
contextInfo ContextInfo
Résultat System

CreateEntity() public méthode

public CreateEntity ( ) : Entity
Résultat Entity

DeactivateAndRemoveEntityIndices() public méthode

public DeactivateAndRemoveEntityIndices ( ) : void
Résultat void

DestroyAllEntities() public méthode

public DestroyAllEntities ( ) : void
Résultat void

DestroyEntity() public méthode

public DestroyEntity ( Entity entity ) : void
entity Entity
Résultat void

GetEntities() public méthode

public GetEntities ( ) : Entitas.Entity[]
Résultat Entitas.Entity[]

GetEntityIndex() public méthode

public GetEntityIndex ( string name ) : IEntityIndex
name string
Résultat IEntityIndex

GetGroup() public méthode

public GetGroup ( IMatcher matcher ) : Group
matcher IMatcher
Résultat Group

HasEntity() public méthode

public HasEntity ( Entity entity ) : bool
entity Entity
Résultat bool

RemoveCoins() public méthode

public RemoveCoins ( ) : void
Résultat void

RemoveISomeInterface() public méthode

public RemoveISomeInterface ( ) : void
Résultat void

RemoveOtherContext() public méthode

public RemoveOtherContext ( ) : void
Résultat void

RemoveUser() public méthode

public RemoveUser ( ) : void
Résultat void

ReplaceCoins() public méthode

public ReplaceCoins ( int newCount ) : Entity
newCount int
Résultat Entity

ReplaceISomeInterface() public méthode

public ReplaceISomeInterface ( ISomeInterface newValue ) : Entity
newValue ISomeInterface
Résultat Entity

ReplaceOtherContext() public méthode

public ReplaceOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Résultat Entity

ReplaceUser() public méthode

public ReplaceUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Résultat Entity

ReplaceUser() public méthode

public ReplaceUser ( string newName, int newAge ) : Entity
newName string
newAge int
Résultat Entity

Reset() public méthode

public Reset ( ) : void
Résultat void

ResetCreationIndex() public méthode

public ResetCreationIndex ( ) : void
Résultat void

SetCoins() public méthode

public SetCoins ( int newCount ) : Entity
newCount int
Résultat Entity

SetISomeInterface() public méthode

public SetISomeInterface ( ISomeInterface newValue ) : Entity
newValue ISomeInterface
Résultat Entity

SetOtherContext() public méthode

public SetOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Résultat Entity

SetUser() public méthode

public SetUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Résultat Entity

SetUser() public méthode

public SetUser ( string newName, int newAge ) : Entity
newName string
newAge int
Résultat Entity

ToString() public méthode

public ToString ( ) : string
Résultat string