Files
tbd-station-14/Content.Server/Ghost/Roles/UI/MakeGhostRoleEui.cs
2023-09-11 14:31:45 +10:00

32 lines
742 B
C#

using Content.Server.EUI;
using Content.Shared.Eui;
using Content.Shared.Ghost.Roles;
namespace Content.Server.Ghost.Roles.UI
{
public sealed class MakeGhostRoleEui : BaseEui
{
private IEntityManager _entManager;
public MakeGhostRoleEui(IEntityManager entManager, NetEntity entity)
{
_entManager = entManager;
Entity = entity;
}
public NetEntity Entity { get; }
public override EuiStateBase GetNewState()
{
return new MakeGhostRoleEuiState(Entity);
}
public override void Closed()
{
base.Closed();
_entManager.System<GhostRoleSystem>().CloseMakeGhostRoleEui(Player);
}
}
}