CargoPalletComponent.cs 576 B

1234567891011121314151617181920212223242526
  1. namespace Content.Server.Cargo.Components;
  2. using Content.Shared.Actions;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations;
  4. /// <summary>
  5. /// Any entities intersecting when a shuttle is recalled will be sold.
  6. /// </summary>
  7. [Flags]
  8. public enum BuySellType : byte
  9. {
  10. Buy = 1 << 0,
  11. Sell = 1 << 1,
  12. All = Buy | Sell
  13. }
  14. [RegisterComponent]
  15. public sealed partial class CargoPalletComponent : Component
  16. {
  17. /// <summary>
  18. /// Whether the pad is a buy pad, a sell pad, or all.
  19. /// </summary>
  20. [DataField]
  21. public BuySellType PalletType;
  22. }