20 lines
640 B
C#
20 lines
640 B
C#
using Content.Server.EUI;
|
|
using Content.Server.Ghost;
|
|
using Content.Shared.Medical;
|
|
using Content.Shared.Mind;
|
|
using Robust.Shared.Player;
|
|
|
|
namespace Content.Server.Medical;
|
|
|
|
public sealed class DefibrillatorSystem : SharedDefibrillatorSystem
|
|
{
|
|
[Dependency] private readonly EuiManager _eui = default!;
|
|
[Dependency] private readonly ISharedPlayerManager _player = default!;
|
|
[Dependency] private readonly SharedMindSystem _mind = default!;
|
|
|
|
protected override void OpenReturnToBodyEui(Entity<MindComponent> mind, ICommonSession session)
|
|
{
|
|
_eui.OpenEui(new ReturnToBodyEui(mind, _mind, _player), session);
|
|
}
|
|
}
|