C# Класс Entitas.Context

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
onEntityReleased ( Entity entity ) : void
updateGroupsComponentAddedOrRemoved ( Entity entity, int index, IComponent component ) : void
updateGroupsComponentReplaced ( Entity entity, int index, IComponent previousComponent, IComponent newComponent ) : void

Описание методов

AddEntityIndex() публичный Метод

public AddEntityIndex ( string name, IEntityIndex entityIndex ) : void
name string
entityIndex IEntityIndex
Результат void

ClearComponentPool() публичный Метод

public ClearComponentPool ( int index ) : void
index int
Результат void

ClearComponentPools() публичный Метод

public ClearComponentPools ( ) : void
Результат void

ClearGroups() публичный Метод

public ClearGroups ( ) : void
Результат void

Context() публичный Метод

public Context ( int totalComponents ) : System
totalComponents int
Результат System

Context() публичный Метод

public Context ( int totalComponents, int startCreationIndex, ContextInfo contextInfo ) : System
totalComponents int
startCreationIndex int
contextInfo ContextInfo
Результат System

CreateEntity() публичный Метод

public CreateEntity ( ) : Entity
Результат Entity

DeactivateAndRemoveEntityIndices() публичный Метод

public DeactivateAndRemoveEntityIndices ( ) : void
Результат void

DestroyAllEntities() публичный Метод

public DestroyAllEntities ( ) : void
Результат void

DestroyEntity() публичный Метод

public DestroyEntity ( Entity entity ) : void
entity Entity
Результат void

GetEntities() публичный Метод

public GetEntities ( ) : Entitas.Entity[]
Результат Entitas.Entity[]

GetEntityIndex() публичный Метод

public GetEntityIndex ( string name ) : IEntityIndex
name string
Результат IEntityIndex

GetGroup() публичный Метод

public GetGroup ( IMatcher matcher ) : Group
matcher IMatcher
Результат Group

HasEntity() публичный Метод

public HasEntity ( Entity entity ) : bool
entity Entity
Результат bool

RemoveCoins() публичный Метод

public RemoveCoins ( ) : void
Результат void

RemoveISomeInterface() публичный Метод

public RemoveISomeInterface ( ) : void
Результат void

RemoveOtherContext() публичный Метод

public RemoveOtherContext ( ) : void
Результат void

RemoveUser() публичный Метод

public RemoveUser ( ) : void
Результат void

ReplaceCoins() публичный Метод

public ReplaceCoins ( int newCount ) : Entity
newCount int
Результат Entity

ReplaceISomeInterface() публичный Метод

public ReplaceISomeInterface ( ISomeInterface newValue ) : Entity
newValue ISomeInterface
Результат Entity

ReplaceOtherContext() публичный Метод

public ReplaceOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Результат Entity

ReplaceUser() публичный Метод

public ReplaceUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Результат Entity

ReplaceUser() публичный Метод

public ReplaceUser ( string newName, int newAge ) : Entity
newName string
newAge int
Результат Entity

Reset() публичный Метод

public Reset ( ) : void
Результат void

ResetCreationIndex() публичный Метод

public ResetCreationIndex ( ) : void
Результат void

SetCoins() публичный Метод

public SetCoins ( int newCount ) : Entity
newCount int
Результат Entity

SetISomeInterface() публичный Метод

public SetISomeInterface ( ISomeInterface newValue ) : Entity
newValue ISomeInterface
Результат Entity

SetOtherContext() публичный Метод

public SetOtherContext ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Результат Entity

SetUser() публичный Метод

public SetUser ( System newTimestamp, bool newIsLoggedIn ) : Entity
newTimestamp System
newIsLoggedIn bool
Результат Entity

SetUser() публичный Метод

public SetUser ( string newName, int newAge ) : Entity
newName string
newAge int
Результат Entity

ToString() публичный Метод

public ToString ( ) : string
Результат string