65
Content.Shared/GameObjects/Components/Power/SharedApc.cs
Normal file
65
Content.Shared/GameObjects/Components/Power/SharedApc.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameObjects.Components.UserInterface;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Power
|
||||
{
|
||||
[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,
|
||||
}
|
||||
|
||||
[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
|
||||
{
|
||||
}
|
||||
|
||||
public enum ApcExternalPowerState
|
||||
{
|
||||
None,
|
||||
Low,
|
||||
Good,
|
||||
}
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public enum ApcUiKey
|
||||
{
|
||||
Key,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user