Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
GameEntitySystem.Entity
类 GameEntitySystem.Entity 继承关系图:
GameEntitySystem.Entity 的协作图:

struct  FilteredComponentsEnumerable< T >
struct  FilteredComponentsEnumerator< T >

Public 成员函数

 Entity (Project project, ValuesDictionary valuesDictionary)
Component FindComponent (Type type, string name, bool throwOnError)
Component FindComponent (string name, bool throwOnError)
FindComponent< T > ()
FindComponent< T > (bool throwOnError)
FindComponent< T > (string name, bool throwOnError)
void RemoveComponent (Component component)
void ReplaceComponent (Component oldComponent, Component newComponent)
FilteredComponentsEnumerable< T > FindComponents< T > ()
void Dispose ()
void InternalLoadEntity (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
void InternalSaveEntity (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
void FireEntityAddedEvent ()
void FireEntityRemovedEvent ()

Public 属性

bool m_isAddedToProject
int Id

包函数

void DisposeInternal ()
List< EntityInternalGetOwnedEntities ()

属性

Project Project [get]
ValuesDictionary ValuesDictionary [get]
bool IsAddedToProject [get]
List< ComponentComponents [get]

事件

EventHandler EntityAdded
EventHandler EntityRemoved
Entity(Project project, ValuesDictionary valuesDictionary, int id) static Action< Entity, List< KeyValuePair< int, Component > > > EntityComponentsInitialized

Private 属性

Project m_project
ValuesDictionary m_valuesDictionary
List< Componentm_components

详细描述

在文件 Entity.cs10 行定义.

构造及析构函数说明

◆ Entity()

GameEntitySystem.Entity.Entity ( Project project,
ValuesDictionary valuesDictionary )

在文件 Entity.cs85 行定义.

函数调用图:
这是这个函数的调用关系图:

成员函数说明

◆ Dispose()

void GameEntitySystem.Entity.Dispose ( )

在文件 Entity.cs183 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ DisposeInternal()

void GameEntitySystem.Entity.DisposeInternal ( )
package

在文件 Entity.cs189 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ FindComponent() [1/2]

Component GameEntitySystem.Entity.FindComponent ( string name,
bool throwOnError )

在文件 Entity.cs148 行定义.

◆ FindComponent() [2/2]

Component GameEntitySystem.Entity.FindComponent ( Type type,
string name,
bool throwOnError )

在文件 Entity.cs132 行定义.

◆ FindComponent< T >() [1/3]

类型限制
T :class 

在文件 Entity.cs165 行定义.

函数调用图:

◆ FindComponent< T >() [2/3]

T GameEntitySystem.Entity.FindComponent< T > ( bool throwOnError)
类型限制
T :class 

在文件 Entity.cs167 行定义.

函数调用图:

◆ FindComponent< T >() [3/3]

T GameEntitySystem.Entity.FindComponent< T > ( string name,
bool throwOnError )
类型限制
T :class 

在文件 Entity.cs169 行定义.

函数调用图:

◆ FindComponents< T >()

FilteredComponentsEnumerable< T > GameEntitySystem.Entity.FindComponents< T > ( )
类型限制
T :class 

在文件 Entity.cs181 行定义.

◆ FireEntityAddedEvent()

void GameEntitySystem.Entity.FireEntityAddedEvent ( )

在文件 Entity.cs225 行定义.

这是这个函数的调用关系图:

◆ FireEntityRemovedEvent()

void GameEntitySystem.Entity.FireEntityRemovedEvent ( )

在文件 Entity.cs229 行定义.

这是这个函数的调用关系图:

◆ InternalGetOwnedEntities()

List< Entity > GameEntitySystem.Entity.InternalGetOwnedEntities ( )
package

在文件 Entity.cs194 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ InternalLoadEntity()

void GameEntitySystem.Entity.InternalLoadEntity ( ValuesDictionary valuesDictionary,
IdToEntityMap idToEntityMap )

在文件 Entity.cs204 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ InternalSaveEntity()

void GameEntitySystem.Entity.InternalSaveEntity ( ValuesDictionary valuesDictionary,
EntityToIdMap entityToIdMap )

在文件 Entity.cs215 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ RemoveComponent()

void GameEntitySystem.Entity.RemoveComponent ( Component component)

在文件 Entity.cs171 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ReplaceComponent()

void GameEntitySystem.Entity.ReplaceComponent ( Component oldComponent,
Component newComponent )

在文件 Entity.cs175 行定义.

函数调用图:

类成员变量说明

◆ Id

int GameEntitySystem.Entity.Id

在文件 Entity.cs79 行定义.

◆ m_components

List<Component> GameEntitySystem.Entity.m_components
private

在文件 Entity.cs63 行定义.

◆ m_isAddedToProject

bool GameEntitySystem.Entity.m_isAddedToProject

在文件 Entity.cs65 行定义.

◆ m_project

Project GameEntitySystem.Entity.m_project
private

在文件 Entity.cs59 行定义.

◆ m_valuesDictionary

ValuesDictionary GameEntitySystem.Entity.m_valuesDictionary
private

在文件 Entity.cs61 行定义.

属性说明

◆ Components

List<Component> GameEntitySystem.Entity.Components
get

在文件 Entity.cs73 行定义.

◆ IsAddedToProject

bool GameEntitySystem.Entity.IsAddedToProject
get

在文件 Entity.cs71 行定义.

◆ Project

Project GameEntitySystem.Entity.Project
get

在文件 Entity.cs67 行定义.

◆ ValuesDictionary

ValuesDictionary GameEntitySystem.Entity.ValuesDictionary
get

在文件 Entity.cs69 行定义.

事件说明

◆ EntityAdded

EventHandler GameEntitySystem.Entity.EntityAdded

在文件 Entity.cs75 行定义.

◆ EntityComponentsInitialized

Entity (Project project, ValuesDictionary valuesDictionary, int id) static Action<Entity, List<KeyValuePair<int, Component> > > GameEntitySystem.Entity.EntityComponentsInitialized
static

在文件 Entity.cs83 行定义.

◆ EntityRemoved

EventHandler GameEntitySystem.Entity.EntityRemoved

在文件 Entity.cs77 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/EntitySystem/GameEntitySystem/Entity.cs