Co-authored-by: Vero <73014819+vero5123@users.noreply.github.com> Co-authored-by: Whisper <121047731+QuietlyWhisper@users.noreply.github.com> Co-authored-by: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
21 lines
588 B
C#
21 lines
588 B
C#
using Content.Shared._RMC14.Explosion.Components;
|
|
using Robust.Shared.Timing;
|
|
|
|
namespace Content.Client._RMC14._Sunrise.Explosion;
|
|
|
|
public sealed class ClientExplosionShockWaveSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IGameTiming _timing = default!;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<RMCExplosionShockWaveComponent, ComponentInit>(OnInit);
|
|
}
|
|
|
|
private void OnInit(Entity<RMCExplosionShockWaveComponent> ent, ref ComponentInit args)
|
|
{
|
|
ent.Comp.CreationTime = _timing.CurTime;
|
|
}
|
|
}
|