DestroySystem<T> 类
实体销毁事件的抽象接口
继承
DestroySystem<T>
继承成员
命名空间: Fantasy.Entitas.Interface
程序集: Fantasy.Net.dll
语法
public abstract class DestroySystem<T> : IEntitiesSystem where T : Entity
类型参数
名称 | 描述 |
---|---|
T |
方法
| 编辑本文 查看源代码Destroy(T)
事件的抽象方法,需要自己实现这个方法
声明
protected abstract void Destroy(T self)
参数
类型 | 名称 | 描述 |
---|---|---|
T | self | 触发事件的实体实例 |
EntitiesType()
实体的类型
声明
public Type EntitiesType()
返回
类型 | 描述 |
---|---|
Type |
Invoke(Entity)
框架内部调用的触发Destroy的方法
声明
public void Invoke(Entity self)
参数
类型 | 名称 | 描述 |
---|---|---|
Entity | self |