2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Server.EUI;
|
2021-02-16 09:51:27 +01:00
|
|
|
|
using Content.Shared.Eui;
|
2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Shared.Ghost.Roles;
|
2021-02-16 09:51:27 +01:00
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Server.Ghost.Roles.UI
|
2021-02-16 09:51:27 +01:00
|
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class MakeGhostRoleEui : BaseEui
|
2021-02-16 09:51:27 +01:00
|
|
|
|
{
|
2023-09-11 14:31:45 +10:00
|
|
|
|
private IEntityManager _entManager;
|
2023-09-11 09:42:41 +10:00
|
|
|
|
|
2023-09-11 14:31:45 +10:00
|
|
|
|
public MakeGhostRoleEui(IEntityManager entManager, NetEntity entity)
|
2021-02-16 09:51:27 +01:00
|
|
|
|
{
|
2023-09-11 14:31:45 +10:00
|
|
|
|
_entManager = entManager;
|
|
|
|
|
|
Entity = entity;
|
2021-02-16 09:51:27 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-09-11 14:31:45 +10:00
|
|
|
|
public NetEntity Entity { get; }
|
2021-02-16 09:51:27 +01:00
|
|
|
|
|
|
|
|
|
|
public override EuiStateBase GetNewState()
|
|
|
|
|
|
{
|
2023-09-11 14:31:45 +10:00
|
|
|
|
return new MakeGhostRoleEuiState(Entity);
|
2021-02-16 09:51:27 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void Closed()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Closed();
|
|
|
|
|
|
|
2023-09-11 09:42:41 +10:00
|
|
|
|
_entManager.System<GhostRoleSystem>().CloseMakeGhostRoleEui(Player);
|
2021-02-16 09:51:27 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|