| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- namespace ET
- {
- /// <summary>
- /// 标记Entity的System静态类 用于自动生成System函数
- /// </summary>
- [AttributeUsage(AttributeTargets.Class)]
- public class EntitySystemOfAttribute: EnableClassAttribute
- {
- public Type type;
- /// <summary>
- /// 标记Entity的System静态类 用于自动生成System函数
- /// </summary>
- /// <param name="type">Entity类型</param>
- /// <param name="ignoreAwake">是否忽略生成AwakeSystem</param>
- public EntitySystemOfAttribute(Type type, bool ignoreAwake = false)
- {
- this.type = type;
- }
- }
- /// <summary>
- /// 标记LSEntity的System静态类 用于自动生成System函数
- /// </summary>
- [AttributeUsage(AttributeTargets.Class)]
- public class LSEntitySystemOfAttribute: EnableClassAttribute
- {
- public Type type;
- /// <summary>
- /// 标记LSEntity的System静态类 用于自动生成System函数
- /// </summary>
- /// <param name="type">LSEntity类型</param>
- /// <param name="ignoreAwake">是否忽略生成AwakeSystem</param>
- public LSEntitySystemOfAttribute(Type type, bool ignoreAwake = false)
- {
- this.type = type;
- }
- }
- }
|