Add cargo shuttle (#8686)

This commit is contained in:
metalgearsloth
2022-06-23 14:36:47 +10:00
committed by GitHub
parent b56b737b67
commit 77a8e16104
99 changed files with 4064 additions and 1356 deletions

View File

@@ -8,16 +8,28 @@ namespace Content.Shared.Shuttles.BUIStates;
public class RadarConsoleBoundInterfaceState : BoundUserInterfaceState
{
public readonly float MaxRange;
public readonly EntityUid? Entity;
/// <summary>
/// The relevant coordinates to base the radar around.
/// </summary>
public EntityCoordinates? Coordinates;
/// <summary>
/// The relevant rotation to rotate the angle around.
/// </summary>
public Angle? Angle;
public readonly List<DockingInterfaceState> Docks;
public RadarConsoleBoundInterfaceState(
float maxRange,
EntityUid? entity,
EntityCoordinates? coordinates,
Angle? angle,
List<DockingInterfaceState> docks)
{
MaxRange = maxRange;
Entity = entity;
Coordinates = coordinates;
Angle = angle;
Docks = docks;
}
}

View File

@@ -12,8 +12,9 @@ public sealed class ShuttleConsoleBoundInterfaceState : RadarConsoleBoundInterfa
public ShuttleConsoleBoundInterfaceState(
ShuttleMode mode,
float maxRange,
EntityUid? entity,
List<DockingInterfaceState> docks) : base(maxRange, entity, docks)
EntityCoordinates? coordinates,
Angle? angle,
List<DockingInterfaceState> docks) : base(maxRange, coordinates, angle, docks)
{
Mode = mode;
}

View File

@@ -17,5 +17,5 @@ public sealed class RadarConsoleComponent : Component
}
[ViewVariables, DataField("maxRange")]
public float MaxRange = 120f;
public float MaxRange = 256f;
}