mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 17:47:24 +02:00
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com> Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
22 lines
647 B
C#
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>();
|
|
}
|
|
}
|