Attributes.cs 741 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WCS.Core
  7. {
  8. public class BelongToAttribute:Attribute
  9. {
  10. public Type WorldType { get; set; }
  11. public BelongToAttribute(Type worldType)
  12. {
  13. this.WorldType = worldType;
  14. }
  15. }
  16. public class OrderAttribute : Attribute
  17. {
  18. public OrderType Order { get; set; }
  19. public Type SystemType { get; set; }
  20. public OrderAttribute(OrderType order,Type sysType)
  21. {
  22. this.Order = order;
  23. this.SystemType = sysType;
  24. }
  25. }
  26. public enum OrderType
  27. {
  28. Before = -1,
  29. After = 1
  30. }
  31. }