| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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,
- }
|