36 lines
1003 B
C#
36 lines
1003 B
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared._RMC14.Attachable;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class AttachableHolderStripUserInterfaceState(Dictionary<string, (string?, bool)> attachableSlots)
|
|
: BoundUserInterfaceState
|
|
{
|
|
public Dictionary<string, (string?, bool)> AttachableSlots = attachableSlots;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class AttachableHolderChooseSlotUserInterfaceState(List<string> attachableSlots) : BoundUserInterfaceState
|
|
{
|
|
public List<string> AttachableSlots = attachableSlots;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class AttachableHolderDetachMessage(string slot) : BoundUserInterfaceMessage
|
|
{
|
|
public readonly string Slot = slot;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class AttachableHolderAttachToSlotMessage(string slot) : BoundUserInterfaceMessage
|
|
{
|
|
public readonly string Slot = slot;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum AttachmentUI : byte
|
|
{
|
|
StripKey,
|
|
ChooseSlotKey,
|
|
}
|