2022-06-23 14:36:47 +10:00
|
|
|
namespace Content.Server.Cargo.Components;
|
2024-03-13 18:26:25 -05:00
|
|
|
using Content.Shared.Actions;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations;
|
2022-06-23 14:36:47 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Any entities intersecting when a shuttle is recalled will be sold.
|
|
|
|
|
/// </summary>
|
2024-03-13 18:26:25 -05:00
|
|
|
|
|
|
|
|
[Flags]
|
|
|
|
|
public enum BuySellType : byte
|
|
|
|
|
{
|
|
|
|
|
Buy = 1 << 0,
|
|
|
|
|
Sell = 1 << 1,
|
|
|
|
|
All = Buy | Sell
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-06-23 14:36:47 +10:00
|
|
|
[RegisterComponent]
|
2024-03-13 18:26:25 -05:00
|
|
|
public sealed partial class CargoPalletComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether the pad is a buy pad, a sell pad, or all.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public BuySellType PalletType;
|
|
|
|
|
}
|