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> Recipes; public List Queue; public LatheRecipePrototype? CurrentlyProducing; public LatheUpdateState(List> recipes, List queue, LatheRecipePrototype? currentlyProducing = null) { Recipes = recipes; Queue = queue; CurrentlyProducing = currentlyProducing; } } /// /// Sent to the server to sync material storage and the recipe queue. /// [Serializable, NetSerializable] public sealed class LatheSyncRequestMessage : BoundUserInterfaceMessage { } /// /// Sent to the server when a client queues a new recipe. /// [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, }