ET Attribute
BaseAttribute
基类特性,其他特效都继承这个特性
CodeAttribute
被标记的类必须实现两个接口(ASingleton 与 ISingletonAwake)。
被标记的类一定是单例,在热更新完成后会被自动创建实例,具体代码在CodeType.CreateCode();
ConfigAttribute
配置类需要标记这个,用来实现,配置的加载。
HttpHandlerAttribute
Http 监听特性,第一个参数是所属SceneType,第二个参数是监听的路径。被标记的类需要实现 IHttpHandler 接口。被标记的类会在 HttpDispatcher.Awake 时自动创建
EntitySystemAttribute
在Entity的 Awake Update LateUpdate Destroy 事件方法上使用。被标记的EntitySystem的方法会在代码编译时生成一个类ET_Entity_System的类,这个类也会被标记成EntitySystem。这个生成的类会在EntitySystemSingleton.Awake 是自动被创建。
EntitySystemOfAttribute
被标记为 EntitySystem 方法的所属类应该打上EntitySystemOfAttribute标记。为看到什么地方有使用这个,可能只是在CodeType中使用。
EventAttribute 与 InvokeAttribute
Event 需要实现 IEvent 接口, Invoke 需要实现 IInvoke 接口。
两者都是EventSystem 管理, Publish 调用的Event,Invoke调用的是Invoke。
MessageAttribute
放在包数据上,OpCode为包编号。 OpcodeType 管理
MessageHandlerAttribute MessageLocationHandlerAttribute
两个都是标记Actor消息处理的类。类必须实现IMHandler接口。被MessageDispatcher管理。从代码处理上来看,MessageLocationHandler 非RPC消息,在处理消息之前也会想发送者回复MessageResponse。
MessageSessionHandlerAttribute
标记网络消息处理的类。
ResponseType
标记消息的响应类型