32 lines
786 B
C#
32 lines
786 B
C#
using Content.Shared._CP14.Demiplane;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client._CP14.Demiplane;
|
|
|
|
public sealed class CP14DemiplaneMapBoundUserInterface : BoundUserInterface
|
|
{
|
|
private CP14DemiplaneMapWindow? _window;
|
|
|
|
public CP14DemiplaneMapBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
{
|
|
IoCManager.InjectDependencies(this);
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
|
|
_window = this.CreateWindow<CP14DemiplaneMapWindow>();
|
|
}
|
|
|
|
protected override void UpdateState(BoundUserInterfaceState state)
|
|
{
|
|
base.UpdateState(state);
|
|
|
|
if (_window == null || state is not CP14DemiplaneMapUiState mapState)
|
|
return;
|
|
|
|
_window?.UpdateState(mapState);
|
|
}
|
|
}
|