Cargo Pallet Sale Console (#14422)
This commit is contained in:
29
Content.Shared/Cargo/BUI/CargoPalletConsoleInterfaceState.cs
Normal file
29
Content.Shared/Cargo/BUI/CargoPalletConsoleInterfaceState.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
12
Content.Shared/Cargo/Events/CargoPalletAppraiseMessage.cs
Normal file
12
Content.Shared/Cargo/Events/CargoPalletAppraiseMessage.cs
Normal 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
|
||||
{
|
||||
|
||||
}
|
||||
12
Content.Shared/Cargo/Events/CargoPalletSellMessage.cs
Normal file
12
Content.Shared/Cargo/Events/CargoPalletSellMessage.cs
Normal 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
|
||||
{
|
||||
|
||||
}
|
||||
@@ -10,6 +10,12 @@ public enum CargoConsoleUiKey : byte
|
||||
Telepad
|
||||
}
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public enum CargoPalletConsoleUiKey : byte
|
||||
{
|
||||
Sale
|
||||
}
|
||||
|
||||
public abstract class SharedCargoSystem : EntitySystem {}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user