Cargo Pallet Sale Console (#14422)

This commit is contained in:
Checkraze
2023-03-13 16:36:35 -04:00
committed by GitHub
parent a7f9b2881b
commit b329abc9ee
11 changed files with 335 additions and 22 deletions

View File

@@ -0,0 +1,29 @@
using Robust.Shared.Serialization;
namespace Content.Shared.Cargo.BUI;
[NetSerializable, Serializable]
public sealed class CargoPalletConsoleInterfaceState : BoundUserInterfaceState
{
/// <summary>
/// estimated apraised value of all the entities on top of pallets on the same grid as the console
/// </summary>
public int Appraisal;
/// <summary>
/// number of entities on top of pallets on the same grid as the console
/// </summary>
public int Count;
/// <summary>
/// are the buttons enabled
/// </summary>
public bool Enabled;
public CargoPalletConsoleInterfaceState(int appraisal, int count, bool enabled)
{
Appraisal = appraisal;
Count = count;
Enabled = enabled;
}
}

View File

@@ -0,0 +1,12 @@
using Robust.Shared.Serialization;
namespace Content.Shared.Cargo.Events;
/// <summary>
/// Raised on a client request to refresh the pallet console
/// </summary>
[Serializable, NetSerializable]
public sealed class CargoPalletAppraiseMessage : BoundUserInterfaceMessage
{
}

View File

@@ -0,0 +1,12 @@
using Robust.Shared.Serialization;
namespace Content.Shared.Cargo.Events;
/// <summary>
/// Raised on a client request pallet sale
/// </summary>
[Serializable, NetSerializable]
public sealed class CargoPalletSellMessage : BoundUserInterfaceMessage
{
}

View File

@@ -10,6 +10,12 @@ public enum CargoConsoleUiKey : byte
Telepad
}
[NetSerializable, Serializable]
public enum CargoPalletConsoleUiKey : byte
{
Sale
}
public abstract class SharedCargoSystem : EntitySystem {}
[Serializable, NetSerializable]