Files
tbd-station-14/Content.Server/Light/Components/LightBulbComponent.cs
2022-05-13 17:59:03 +10:00

41 lines
1.2 KiB
C#

using Content.Server.Light.EntitySystems;
using Content.Shared.Light;
using Content.Shared.Sound;
namespace Content.Server.Light.Components
{
/// <summary>
/// Component that represents a light bulb. Can be broken, or burned, which turns them mostly useless.
/// </summary>
[RegisterComponent, Friend(typeof(LightBulbSystem))]
public sealed class LightBulbComponent : Component
{
[DataField("color")]
public Color Color = Color.White;
[DataField("bulb")]
public LightBulbType Type = LightBulbType.Tube;
[DataField("startingState")]
public LightBulbState State = LightBulbState.Normal;
[DataField("BurningTemperature")]
public int BurningTemperature = 1400;
[DataField("lightEnergy")]
public float LightEnergy = 0.8f;
[DataField("lightRadius")]
public float LightRadius = 10;
[DataField("lightSoftness")]
public float LightSoftness = 1;
[DataField("PowerUse")]
public int PowerUse = 60;
[DataField("breakSound")]
public SoundSpecifier BreakSound = new SoundCollectionSpecifier("GlassBreak");
}
}