30 lines
677 B
C#
30 lines
677 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Light.Component
|
|
{
|
|
[NetworkedComponent]
|
|
public abstract partial class SharedEmergencyLightComponent : Robust.Shared.GameObjects.Component
|
|
{
|
|
public bool Enabled { get; set; } = false;
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class EmergencyLightComponentState : ComponentState
|
|
{
|
|
public bool Enabled;
|
|
|
|
public EmergencyLightComponentState(bool enabled)
|
|
{
|
|
Enabled = enabled;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum EmergencyLightVisuals
|
|
{
|
|
On,
|
|
Color
|
|
}
|
|
}
|