2021-07-17 02:37:09 +02:00
|
|
|
|
using System;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2019-04-15 21:11:38 -06:00
|
|
|
|
using Robust.Shared.Serialization;
|
2018-07-17 11:39:55 +02:00
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Shared.APC
|
2018-07-17 11:39:55 +02:00
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum ApcVisuals
|
|
|
|
|
|
{
|
|
|
|
|
|
ChargeState
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum ApcChargeState
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// APC does not have enough power to charge cell (if necessary) and keep powering the area.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Lack,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// APC is not full but has enough power.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Charging,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// APC battery is full and has enough power.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Full,
|
2022-02-17 21:43:24 -05:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// APC is emagged (and not displaying other useful power colors at a glance)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Emag,
|
2018-07-17 11:39:55 +02:00
|
|
|
|
}
|
2018-08-31 08:52:48 +02:00
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class ApcBoundInterfaceState : BoundUserInterfaceState
|
|
|
|
|
|
{
|
|
|
|
|
|
public readonly bool MainBreaker;
|
|
|
|
|
|
public readonly ApcExternalPowerState ApcExternalPower;
|
|
|
|
|
|
public readonly float Charge;
|
|
|
|
|
|
|
|
|
|
|
|
public ApcBoundInterfaceState(bool mainBreaker, ApcExternalPowerState apcExternalPower, float charge)
|
|
|
|
|
|
{
|
|
|
|
|
|
MainBreaker = mainBreaker;
|
|
|
|
|
|
ApcExternalPower = apcExternalPower;
|
|
|
|
|
|
Charge = charge;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public sealed class ApcToggleMainBreakerMessage : BoundUserInterfaceMessage
|
2021-02-27 04:12:09 +01:00
|
|
|
|
{
|
2018-08-31 08:52:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum ApcExternalPowerState
|
|
|
|
|
|
{
|
|
|
|
|
|
None,
|
|
|
|
|
|
Low,
|
|
|
|
|
|
Good,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[NetSerializable, Serializable]
|
|
|
|
|
|
public enum ApcUiKey
|
|
|
|
|
|
{
|
|
|
|
|
|
Key,
|
|
|
|
|
|
}
|
2018-07-17 11:39:55 +02:00
|
|
|
|
}
|