53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
using Content.Shared.Research.Prototypes;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Lathe;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class LatheUpdateState : BoundUserInterfaceState
|
|
{
|
|
public List<ProtoId<LatheRecipePrototype>> Recipes;
|
|
|
|
public List<LatheRecipePrototype> Queue;
|
|
|
|
public LatheRecipePrototype? CurrentlyProducing;
|
|
|
|
public LatheUpdateState(List<ProtoId<LatheRecipePrototype>> recipes, List<LatheRecipePrototype> queue, LatheRecipePrototype? currentlyProducing = null)
|
|
{
|
|
Recipes = recipes;
|
|
Queue = queue;
|
|
CurrentlyProducing = currentlyProducing;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sent to the server to sync material storage and the recipe queue.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class LatheSyncRequestMessage : BoundUserInterfaceMessage
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Sent to the server when a client queues a new recipe.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class LatheQueueRecipeMessage : BoundUserInterfaceMessage
|
|
{
|
|
public readonly string ID;
|
|
public readonly int Quantity;
|
|
public LatheQueueRecipeMessage(string id, int quantity)
|
|
{
|
|
ID = id;
|
|
Quantity = quantity;
|
|
}
|
|
}
|
|
|
|
[NetSerializable, Serializable]
|
|
public enum LatheUiKey
|
|
{
|
|
Key,
|
|
}
|