Delta-v/Content.Shared/_Shitmed/Surgery/SurgeryUI.cs

33 lines
983 B
C#

using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared._Shitmed.Medical.Surgery;
[Serializable, NetSerializable]
public enum SurgeryUIKey
{
Key
}
[Serializable, NetSerializable]
public sealed class SurgeryBuiState(Dictionary<NetEntity, List<EntProtoId>> choices) : BoundUserInterfaceState
{
public readonly Dictionary<NetEntity, List<EntProtoId>> Choices = choices;
}
[Serializable, NetSerializable]
public sealed class SurgeryBuiRefreshMessage : BoundUserInterfaceMessage
{
}
[Serializable, NetSerializable]
public sealed class SurgeryStepChosenBuiMsg(NetEntity part, EntProtoId surgery, EntProtoId step, bool isBody) : BoundUserInterfaceMessage
{
public readonly NetEntity Part = part;
public readonly EntProtoId Surgery = surgery;
public readonly EntProtoId Step = step;
// Used as a marker for whether or not we're hijacking surgery by applying it on the body itself.
public readonly bool IsBody = isBody;
}