Files
OldThink/Content.Server/Ghost/Roles/UI/MakeGhostRoleEui.cs

32 lines
742 B
C#
Raw Permalink Normal View History

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
{
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 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();
_entManager.System<GhostRoleSystem>().CloseMakeGhostRoleEui(Player);
2021-02-16 09:51:27 +01:00
}
}
}