Attributes.cs 507 B

1234567891011121314151617181920212223242526272829
  1. namespace WCS.Core;
  2. public class BelongToAttribute : Attribute
  3. {
  4. public BelongToAttribute(Type worldType)
  5. {
  6. WorldType = worldType;
  7. }
  8. public Type WorldType { get; set; }
  9. }
  10. public class OrderAttribute : Attribute
  11. {
  12. public OrderAttribute(OrderType order, Type sysType)
  13. {
  14. Order = order;
  15. SystemType = sysType;
  16. }
  17. public OrderType Order { get; set; }
  18. public Type SystemType { get; set; }
  19. }
  20. public enum OrderType
  21. {
  22. Before = -1,
  23. After = 1
  24. }