mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
18 lines
479 B
C#
18 lines
479 B
C#
using Content.Client.Light.Components;
|
|
|
|
namespace Content.Client.Light.EntitySystems;
|
|
|
|
public sealed class ExpendableLightSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<ExpendableLightComponent, ComponentShutdown>(OnLightShutdown);
|
|
}
|
|
|
|
private void OnLightShutdown(EntityUid uid, ExpendableLightComponent component, ComponentShutdown args)
|
|
{
|
|
component.PlayingStream?.Stop();
|
|
}
|
|
}
|