EntitySystemOf.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. namespace ET
  3. {
  4. /// <summary>
  5. /// 标记Entity的System静态类 用于自动生成System函数
  6. /// </summary>
  7. [AttributeUsage(AttributeTargets.Class)]
  8. public class EntitySystemOfAttribute: EnableClassAttribute
  9. {
  10. public Type type;
  11. /// <summary>
  12. /// 标记Entity的System静态类 用于自动生成System函数
  13. /// </summary>
  14. /// <param name="type">Entity类型</param>
  15. /// <param name="ignoreAwake">是否忽略生成AwakeSystem</param>
  16. public EntitySystemOfAttribute(Type type, bool ignoreAwake = false)
  17. {
  18. this.type = type;
  19. }
  20. }
  21. /// <summary>
  22. /// 标记LSEntity的System静态类 用于自动生成System函数
  23. /// </summary>
  24. [AttributeUsage(AttributeTargets.Class)]
  25. public class LSEntitySystemOfAttribute: EnableClassAttribute
  26. {
  27. public Type type;
  28. /// <summary>
  29. /// 标记LSEntity的System静态类 用于自动生成System函数
  30. /// </summary>
  31. /// <param name="type">LSEntity类型</param>
  32. /// <param name="ignoreAwake">是否忽略生成AwakeSystem</param>
  33. public LSEntitySystemOfAttribute(Type type, bool ignoreAwake = false)
  34. {
  35. this.type = type;
  36. }
  37. }
  38. }