2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Server.Light.Components;
|
2020-12-08 11:56:10 +01:00
|
|
|
|
using JetBrains.Annotations;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
using Robust.Shared.GameObjects;
|
2020-09-03 16:02:40 -04:00
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Server.Light.EntitySystems
|
2020-09-03 16:02:40 -04:00
|
|
|
|
{
|
2020-12-08 11:56:10 +01:00
|
|
|
|
[UsedImplicitly]
|
2020-09-03 16:02:40 -04:00
|
|
|
|
public class ExpendableLightSystem : EntitySystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Update(float frameTime)
|
|
|
|
|
|
{
|
2021-02-04 00:20:48 +11:00
|
|
|
|
foreach (var light in ComponentManager.EntityQuery<ExpendableLightComponent>(true))
|
2020-09-03 16:02:40 -04:00
|
|
|
|
{
|
|
|
|
|
|
light.Update(frameTime);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|