Files
crystall-punk-14/Content.Client/_CP14/Religion/CP14ReligionEntityBoundUserInterface.cs
Red b24ec5bc80 Bugfixes (#1432)
* fix #1428

* CodTenAlt review

* fix map tests

* real this time

* fix #1429

* add wheat and cotton into victorian gardens trade faction

* Update PostMapInitTest.cs
2025-06-15 21:25:58 +03:00

35 lines
957 B
C#

using Content.Client._CP14.DemiplaneTraveling;
using Content.Shared._CP14.DemiplaneTraveling;
using Content.Shared._CP14.Religion.Systems;
using Robust.Client.UserInterface;
namespace Content.Client._CP14.Religion;
public sealed class CP14ReligionEntityBoundUserInterface : BoundUserInterface
{
private CP14ReligionEntityWindow? _window;
public CP14ReligionEntityBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
{
}
protected override void Open()
{
base.Open();
_window = this.CreateWindow<CP14ReligionEntityWindow>();
_window.OnTeleportAttempt += netId => SendMessage(new CP14ReligionEntityTeleportAttempt(netId));
}
protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
if (_window == null || state is not CP14ReligionEntityUiState mapState)
return;
_window?.UpdateState(mapState);
}
}