mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
21 lines
513 B
C#
21 lines
513 B
C#
using Content.Shared.Wega.Ghost.Respawn;
|
|
|
|
namespace Content.Client.Wega.Ghost.Respawn;
|
|
|
|
public sealed partial class GhostRespawnSystem : EntitySystem
|
|
{
|
|
public TimeSpan? GhostRespawnTime { get; private set; }
|
|
public event Action? GhostRespawn;
|
|
|
|
public override void Initialize()
|
|
{
|
|
SubscribeNetworkEvent<GhostRespawnEvent>(OnGhostRespawnReset);
|
|
}
|
|
|
|
private void OnGhostRespawnReset(GhostRespawnEvent e)
|
|
{
|
|
GhostRespawnTime = e.Time;
|
|
GhostRespawn?.Invoke();
|
|
}
|
|
}
|