NPC refactor (#10122)
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
22
Content.Client/NPC/NPCEui.cs
Normal file
22
Content.Client/NPC/NPCEui.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Content.Client.Eui;
|
||||
|
||||
namespace Content.Client.NPC;
|
||||
|
||||
public sealed class NPCEui : BaseEui
|
||||
{
|
||||
private NPCWindow? _window = new();
|
||||
|
||||
public override void Opened()
|
||||
{
|
||||
base.Opened();
|
||||
_window = new NPCWindow();
|
||||
_window.OpenCentered();
|
||||
}
|
||||
|
||||
public override void Closed()
|
||||
{
|
||||
base.Closed();
|
||||
_window?.Close();
|
||||
_window = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user