mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
19 lines
575 B
C#
19 lines
575 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Flash
|
|
{
|
|
public abstract class SharedFlashSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<SharedFlashableComponent, ComponentGetState>(OnFlashableGetState);
|
|
}
|
|
|
|
private static void OnFlashableGetState(EntityUid uid, SharedFlashableComponent component, ref ComponentGetState args)
|
|
{
|
|
args.State = new FlashableComponentState(component.Duration, component.LastFlash);
|
|
}
|
|
}
|
|
}
|