Files
OldThink/Content.Client/Light/HandheldLightSystem.cs

22 lines
619 B
C#
Raw Normal View History

using Content.Client.Items;
2021-12-27 18:15:16 +11:00
using Content.Client.Light.Components;
using Content.Shared.Light;
2021-12-27 18:15:16 +11:00
using Content.Shared.Light.Component;
namespace Content.Client.Light;
public sealed class HandheldLightSystem : SharedHandheldLightSystem
2021-12-27 18:15:16 +11:00
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<HandheldLightComponent, ItemStatusCollectMessage>(OnGetStatusControl);
}
private static void OnGetStatusControl(EntityUid uid, HandheldLightComponent component, ItemStatusCollectMessage args)
2021-12-27 18:15:16 +11:00
{
args.Controls.Add(new HandheldLightStatus(component));
2021-12-27 18:15:16 +11:00
}
}