mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
22 lines
596 B
C#
22 lines
596 B
C#
using Content.Server.Light.Components;
|
|
using Content.Shared.Throwing;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.Light.EntitySystems
|
|
{
|
|
public sealed class LightBulbSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
SubscribeLocalEvent<LightBulbComponent, LandEvent>(HandleLand);
|
|
}
|
|
|
|
private void HandleLand(EntityUid uid, LightBulbComponent component, LandEvent args)
|
|
{
|
|
component.PlayBreakSound();
|
|
component.State = LightBulbState.Broken;
|
|
}
|
|
}
|
|
}
|