2023-08-12 17:39:58 -04:00
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Silicons.Borgs;
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum BorgUiKey : byte
|
|
|
|
|
|
{
|
|
|
|
|
|
Key
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class BorgBuiState : BoundUserInterfaceState
|
|
|
|
|
|
{
|
|
|
|
|
|
public float ChargePercent;
|
|
|
|
|
|
|
|
|
|
|
|
public bool HasBattery;
|
|
|
|
|
|
|
|
|
|
|
|
public BorgBuiState(float chargePercent, bool hasBattery)
|
|
|
|
|
|
{
|
|
|
|
|
|
ChargePercent = chargePercent;
|
|
|
|
|
|
HasBattery = hasBattery;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class BorgEjectBrainBuiMessage : BoundUserInterfaceMessage
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class BorgEjectBatteryBuiMessage : BoundUserInterfaceMessage
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class BorgSetNameBuiMessage : BoundUserInterfaceMessage
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Name;
|
|
|
|
|
|
|
|
|
|
|
|
public BorgSetNameBuiMessage(string name)
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class BorgRemoveModuleBuiMessage : BoundUserInterfaceMessage
|
|
|
|
|
|
{
|
2023-09-11 09:42:41 +10:00
|
|
|
|
public NetEntity Module;
|
2023-08-12 17:39:58 -04:00
|
|
|
|
|
2023-09-11 09:42:41 +10:00
|
|
|
|
public BorgRemoveModuleBuiMessage(NetEntity module)
|
2023-08-12 17:39:58 -04:00
|
|
|
|
{
|
|
|
|
|
|
Module = module;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|