* Implement emergency lights reacting to lost power * Add emergency light sprites Remove shared emergency light component * Remove unused import * Remove EmergencyLight NetID * Add rich description Change comments Add license Implement ExposeData Co-authored-by: Julian Giebel <j.giebel@netrocks.info>
19 lines
544 B
C#
19 lines
544 B
C#
using Content.Server.GameObjects.Components.Power.ApcNetComponents.PowerReceiverUsers;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems
|
|
{
|
|
[UsedImplicitly]
|
|
internal sealed class EmergencyLightSystem : EntitySystem
|
|
{
|
|
public override void Update(float frameTime)
|
|
{
|
|
foreach (var comp in ComponentManager.EntityQuery<EmergencyLightComponent>())
|
|
{
|
|
comp.OnUpdate(frameTime);
|
|
}
|
|
}
|
|
}
|
|
}
|