Files
RobustToolbox/Robust.Client/ComponentTrees/LightTreeSystem.cs

22 lines
647 B
C#

using Robust.Client.GameObjects;
using Robust.Shared.ComponentTrees;
using Robust.Shared.GameObjects;
namespace Robust.Client.ComponentTrees;
public sealed class LightTreeSystem : SharedLightTreeSystem
{
public override void Initialize()
{
if (!Enabled)
return;
base.Initialize();
SubscribeLocalEvent<PointLightComponent, ComponentStartup>(OnCompStartup);
SubscribeLocalEvent<PointLightComponent, ComponentRemove>(OnCompRemoved);
// TODO LIGHT move PointLightComponent to shared
Query = EntityManager.GetEntityQuery<SharedPointLightComponent, PointLightComponent>();
}
}