using Content.Shared._CP14.Cargo.Prototype; using Content.Shared.Destructible.Thresholds; using Robust.Shared.Prototypes; using Robust.Shared.Utility; namespace Content.Shared._CP14.Cargo; /// /// Add to the station so that traveling store ship starts running on it /// [RegisterComponent] public sealed partial class CP14StationTravelingStoreShipTargetComponent : Component { [DataField] public EntityUid? Shuttle; [DataField] public EntityUid? TradePostMap; [DataField] public bool OnStation; [DataField] public ResPath ShuttlePath = new("/Maps/_CP14/Ships/cargo_shuttle.yml"); [DataField] public TimeSpan NextTravelTime = TimeSpan.Zero; [DataField] public TimeSpan StationWaitTime = TimeSpan.FromMinutes(6); [DataField] public TimeSpan TradePostWaitTime = TimeSpan.FromMinutes(4); [DataField] public Dictionary CurrentBuyPositions = new(); //Proto, price [DataField] public MinMax SpecialBuyPositionCount = new(1, 2); [DataField] public Dictionary CurrentSellPositions = new(); //Proto, price [DataField] public MinMax SpecialSellPositionCount = new(1, 2); [DataField] public int Balance = 0; /// /// a queue of purchased items. The oldest purchases are taken out one by one to be unloaded onto the ship /// [DataField] public Queue BuyedQueue = new(); }