# Conflicts: # Content.Server/Actions/Actions/DisarmAction.cs # Content.Server/Actions/Actions/ScreamAction.cs # Content.Server/Arcade/Components/SpaceVillainArcadeComponent.cs # Content.Server/Damage/Components/DamageOnHighSpeedImpactComponent.cs # Content.Server/Explosion/Components/FlashExplosiveComponent.cs # Content.Server/Physics/Controllers/MoverController.cs # Content.Server/Portal/Components/PortalComponent.cs # Content.Server/Portal/Components/TeleporterComponent.cs # Content.Server/Projectiles/Components/ProjectileComponent.cs # Content.Server/Singularity/Components/EmitterComponent.cs # Content.Server/Sound/EmitSoundSystem.cs # Content.Server/Stunnable/Components/StunbatonComponent.cs # Content.Server/Tools/Components/MultitoolComponent.cs # Content.Server/Weapon/Ranged/Barrels/Components/ServerBatteryBarrelComponent.cs # Content.Shared/Gravity/GravityComponent.cs # Content.Shared/Light/Component/SharedExpendableLightComponent.cs # Content.Shared/Maps/ContentTileDefinition.cs # Content.Shared/Slippery/SlipperyComponent.cs # Content.Shared/Standing/StandingStateComponent.cs # Resources/Prototypes/Entities/Objects/Fun/bike_horn.yml
76 lines
2.1 KiB
C#
76 lines
2.1 KiB
C#
using System;
|
|
using Content.Shared.Sound;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Shared.Light.Component
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public enum ExpendableLightVisuals
|
|
{
|
|
State
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum ExpendableLightState
|
|
{
|
|
BrandNew,
|
|
Lit,
|
|
Fading,
|
|
Dead
|
|
}
|
|
|
|
public abstract class SharedExpendableLightComponent: Robust.Shared.GameObjects.Component
|
|
{
|
|
public sealed override string Name => "ExpendableLight";
|
|
|
|
[ViewVariables(VVAccess.ReadOnly)]
|
|
protected ExpendableLightState CurrentState { get; set; }
|
|
|
|
[ViewVariables]
|
|
[DataField("turnOnBehaviourID")]
|
|
protected string TurnOnBehaviourID { get; set; } = string.Empty;
|
|
|
|
[ViewVariables]
|
|
[DataField("fadeOutBehaviourID")]
|
|
protected string FadeOutBehaviourID { get; set; } = string.Empty;
|
|
|
|
[ViewVariables]
|
|
[DataField("glowDuration")]
|
|
protected float GlowDuration { get; set; } = 60 * 15f;
|
|
|
|
[ViewVariables]
|
|
[DataField("fadeOutDuration")]
|
|
protected float FadeOutDuration { get; set; } = 60 * 5f;
|
|
|
|
[ViewVariables]
|
|
[DataField("spentDesc")]
|
|
protected string SpentDesc { get; set; } = string.Empty;
|
|
|
|
[ViewVariables]
|
|
[DataField("spentName")]
|
|
protected string SpentName { get; set; } = string.Empty;
|
|
|
|
[ViewVariables]
|
|
[DataField("iconStateSpent")]
|
|
protected string IconStateSpent { get; set; } = string.Empty;
|
|
|
|
[ViewVariables]
|
|
[DataField("iconStateOn")]
|
|
protected string IconStateLit { get; set; } = string.Empty;
|
|
|
|
[ViewVariables]
|
|
[DataField("litSound")]
|
|
protected SoundSpecifier LitSound { get; set; } = default!;
|
|
|
|
[ViewVariables]
|
|
[DataField("loopedSound")]
|
|
protected string LoopedSound { get; set; } = default!;
|
|
|
|
[ViewVariables]
|
|
[DataField("dieSound")]
|
|
protected SoundSpecifier DieSound { get; set; } = default!;
|
|
}
|
|
}
|