Content update for NetEntities (#18935)
This commit is contained in:
@@ -28,7 +28,7 @@ public sealed class ShuttleConsoleBoundUserInterface : BoundUserInterface
|
||||
_window.OnClose += OnClose;
|
||||
}
|
||||
|
||||
private void OnDestinationPressed(EntityUid obj)
|
||||
private void OnDestinationPressed(NetEntity obj)
|
||||
{
|
||||
SendMessage(new ShuttleConsoleFTLRequestMessage()
|
||||
{
|
||||
@@ -51,17 +51,17 @@ public sealed class ShuttleConsoleBoundUserInterface : BoundUserInterface
|
||||
}
|
||||
}
|
||||
|
||||
private void OnStopAutodockPressed(EntityUid obj)
|
||||
private void OnStopAutodockPressed(NetEntity obj)
|
||||
{
|
||||
SendMessage(new StopAutodockRequestMessage() { DockEntity = obj });
|
||||
}
|
||||
|
||||
private void OnAutodockPressed(EntityUid obj)
|
||||
private void OnAutodockPressed(NetEntity obj)
|
||||
{
|
||||
SendMessage(new AutodockRequestMessage() { DockEntity = obj });
|
||||
}
|
||||
|
||||
private void OnUndockPressed(EntityUid obj)
|
||||
private void OnUndockPressed(NetEntity obj)
|
||||
{
|
||||
SendMessage(new UndockRequestMessage() { DockEntity = obj });
|
||||
}
|
||||
@@ -71,7 +71,7 @@ public sealed class ShuttleConsoleBoundUserInterface : BoundUserInterface
|
||||
base.UpdateState(state);
|
||||
if (state is not ShuttleConsoleBoundInterfaceState cState) return;
|
||||
|
||||
_window?.SetMatrix(cState.Coordinates, cState.Angle);
|
||||
_window?.SetMatrix(EntMan.GetCoordinates(cState.Coordinates), cState.Angle);
|
||||
_window?.UpdateState(cState);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user