Content update for NetEntities (#18935)
This commit is contained in:
@@ -12,7 +12,7 @@ public class RadarConsoleBoundInterfaceState : BoundUserInterfaceState
|
||||
/// <summary>
|
||||
/// The relevant coordinates to base the radar around.
|
||||
/// </summary>
|
||||
public EntityCoordinates? Coordinates;
|
||||
public NetCoordinates? Coordinates;
|
||||
|
||||
/// <summary>
|
||||
/// The relevant rotation to rotate the angle around.
|
||||
@@ -23,7 +23,7 @@ public class RadarConsoleBoundInterfaceState : BoundUserInterfaceState
|
||||
|
||||
public RadarConsoleBoundInterfaceState(
|
||||
float maxRange,
|
||||
EntityCoordinates? coordinates,
|
||||
NetCoordinates? coordinates,
|
||||
Angle? angle,
|
||||
List<DockingInterfaceState> docks)
|
||||
{
|
||||
@@ -40,9 +40,9 @@ public class RadarConsoleBoundInterfaceState : BoundUserInterfaceState
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class DockingInterfaceState
|
||||
{
|
||||
public EntityCoordinates Coordinates;
|
||||
public NetCoordinates Coordinates;
|
||||
public Angle Angle;
|
||||
public EntityUid Entity;
|
||||
public NetEntity Entity;
|
||||
public bool Connected;
|
||||
public Color Color;
|
||||
public Color HighlightedColor;
|
||||
|
||||
@@ -18,14 +18,14 @@ public sealed class ShuttleConsoleBoundInterfaceState : RadarConsoleBoundInterfa
|
||||
/// </summary>
|
||||
public readonly TimeSpan FTLTime;
|
||||
|
||||
public List<(EntityUid Entity, string Destination, bool Enabled)> Destinations;
|
||||
public List<(NetEntity Entity, string Destination, bool Enabled)> Destinations;
|
||||
|
||||
public ShuttleConsoleBoundInterfaceState(
|
||||
FTLState ftlState,
|
||||
TimeSpan ftlTime,
|
||||
List<(EntityUid Entity, string Destination, bool Enabled)> destinations,
|
||||
List<(NetEntity Entity, string Destination, bool Enabled)> destinations,
|
||||
float maxRange,
|
||||
EntityCoordinates? coordinates,
|
||||
NetCoordinates? coordinates,
|
||||
Angle? angle,
|
||||
List<DockingInterfaceState> docks) : base(maxRange, coordinates, angle, docks)
|
||||
{
|
||||
|
||||
@@ -8,5 +8,5 @@ namespace Content.Shared.Shuttles.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class AutodockRequestMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public EntityUid DockEntity;
|
||||
public NetEntity DockEntity;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ namespace Content.Shared.Shuttles.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class EmergencyShuttlePositionMessage : EntityEventArgs
|
||||
{
|
||||
public EntityUid? StationUid;
|
||||
public NetEntity? StationUid;
|
||||
public Box2? Position;
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ namespace Content.Shared.Shuttles.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ShuttleConsoleFTLRequestMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public EntityUid Destination;
|
||||
public NetEntity Destination;
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ namespace Content.Shared.Shuttles.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class StopAutodockRequestMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public EntityUid DockEntity;
|
||||
public NetEntity DockEntity;
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ namespace Content.Shared.Shuttles.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class UndockRequestMessage : BoundUserInterfaceMessage
|
||||
{
|
||||
public EntityUid DockEntity;
|
||||
public NetEntity DockEntity;
|
||||
}
|
||||
|
||||
@@ -20,9 +20,9 @@ namespace Content.Shared.Shuttles.Systems
|
||||
[Serializable, NetSerializable]
|
||||
protected sealed class PilotComponentState : ComponentState
|
||||
{
|
||||
public EntityUid? Console { get; }
|
||||
public NetEntity? Console { get; }
|
||||
|
||||
public PilotComponentState(EntityUid? uid)
|
||||
public PilotComponentState(NetEntity? uid)
|
||||
{
|
||||
Console = uid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user