Resolves LightBulbVisualizer is Obsolete (#13889)

This commit is contained in:
TemporalOroboros
2023-02-13 19:43:51 -08:00
committed by GitHub
parent 1e93d1e5a8
commit 5b23048497
11 changed files with 187 additions and 142 deletions

View File

@@ -1,40 +0,0 @@
using Content.Server.Light.EntitySystems;
using Content.Shared.Light;
using Robust.Shared.Audio;
namespace Content.Server.Light.Components
{
/// <summary>
/// Component that represents a light bulb. Can be broken, or burned, which turns them mostly useless.
/// </summary>
[RegisterComponent, Access(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");
}
}

View File

@@ -1,4 +1,4 @@
using Content.Shared.Light;
using Content.Shared.Light.Component;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
using Robust.Shared.Prototypes;

View File

@@ -1,7 +1,7 @@
using System.Threading;
using Content.Server.Light.EntitySystems;
using Content.Shared.Damage;
using Content.Shared.Light;
using Content.Shared.Light.Component;
using Content.Shared.MachineLinking;
using Robust.Shared.Audio;
using Robust.Shared.Containers;

View File

@@ -1,6 +1,6 @@
using Content.Server.Light.Components;
using Content.Shared.Destructible;
using Content.Shared.Light;
using Content.Shared.Light.Component;
using Content.Shared.Throwing;
using Robust.Server.GameObjects;
using Robust.Shared.Audio;

View File

@@ -2,7 +2,7 @@ using System.Linq;
using Content.Server.Light.Components;
using Content.Server.Storage.Components;
using Content.Shared.Interaction;
using Content.Shared.Light;
using Content.Shared.Light.Component;
using Content.Shared.Popups;
using JetBrains.Annotations;
using Robust.Shared.Audio;

View File

@@ -14,6 +14,7 @@ using Content.Shared.Database;
using Content.Shared.Hands.EntitySystems;
using Content.Shared.Interaction;
using Content.Shared.Light;
using Content.Shared.Light.Component;
using Content.Shared.Popups;
using Robust.Server.GameObjects;
using Robust.Shared.Audio;