2021-02-27 04:12:09 +01:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using System;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Serialization;
|
2021-03-05 01:08:38 +01:00
|
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.GameObjects.Components
|
|
|
|
|
|
{
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum ExpendableLightVisuals
|
|
|
|
|
|
{
|
|
|
|
|
|
State
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum ExpendableLightState
|
|
|
|
|
|
{
|
|
|
|
|
|
BrandNew,
|
|
|
|
|
|
Lit,
|
|
|
|
|
|
Fading,
|
|
|
|
|
|
Dead
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public abstract class SharedExpendableLightComponent: Component
|
|
|
|
|
|
{
|
|
|
|
|
|
public sealed override string Name => "ExpendableLight";
|
|
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
|
|
|
|
|
protected ExpendableLightState CurrentState { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("turnOnBehaviourID")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string TurnOnBehaviourID { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("fadeOutBehaviourID")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string FadeOutBehaviourID { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("glowDuration")]
|
|
|
|
|
|
protected float GlowDuration { get; set; } = 60 * 15f;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("fadeOutDuration")]
|
|
|
|
|
|
protected float FadeOutDuration { get; set; } = 60 * 5f;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("spentDesc")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string SpentDesc { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("spentName")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string SpentName { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("iconStateSpent")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string IconStateSpent { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("iconStateOn")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string IconStateLit { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("litSound")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string LitSound { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("loopedSound")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string LoopedSound { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
2021-03-05 01:08:38 +01:00
|
|
|
|
[DataField("dieSound")]
|
2021-02-27 04:12:09 +01:00
|
|
|
|
protected string DieSound { get; set; } = string.Empty;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|