mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 01:27:13 +02:00
22 lines
655 B
C#
22 lines
655 B
C#
using Robust.Client.GameObjects;
|
|
using Robust.Shared.ComponentTrees;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Robust.Client.ComponentTrees;
|
|
|
|
public sealed partial 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>();
|
|
}
|
|
}
|