* Added new Buy & Sell specific cargo pallets * Remapped trading outpost with new pallets, tweaked texture * Removed debug message * Fixed/Compacted conditional checking to let old pallets still work for backwards compatability * Update Content.Server/Cargo/Components/CargoPalletComponent.cs Alright, updating all the references to it. Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * Changed textures, changed to enum instead of string for pallet type check * Few minor code tweaks/formatting fixes * Missed the prototype change * Update Content.Server/Cargo/Components/CargoPalletComponent.cs * Update Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
27 lines
576 B
C#
27 lines
576 B
C#
namespace Content.Server.Cargo.Components;
|
|
using Content.Shared.Actions;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations;
|
|
|
|
/// <summary>
|
|
/// Any entities intersecting when a shuttle is recalled will be sold.
|
|
/// </summary>
|
|
|
|
[Flags]
|
|
public enum BuySellType : byte
|
|
{
|
|
Buy = 1 << 0,
|
|
Sell = 1 << 1,
|
|
All = Buy | Sell
|
|
}
|
|
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class CargoPalletComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Whether the pad is a buy pad, a sell pad, or all.
|
|
/// </summary>
|
|
[DataField]
|
|
public BuySellType PalletType;
|
|
}
|