Add docking window to shuttle consoles (#8756)
* lewd * A * Realtime * Sleepy dork * Draw radar position * Accurate infiltrator * experiments * Better drawing * Labels * I need aan adult * Cleanup * Show toggles * display I guess * A * fix * fix * cleanupsies * Bit more polish * Make sure mass scanners actually work * Remove dummy state * fren * opposite * aghost crash * comment * What's in a name * woops * Show docking ports * Dock highlighting * Drawing dock * Shitty docks * Lots of docking drawing * Autodock working * dork * More graceful shutdown * zoomies * Lines and distance change * revert * Good enough * cleanup * Fix default range * Dock UI and loc update * Update on undock * Loc fixes
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Shuttles.BUIStates;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
[Virtual]
|
||||
public class RadarConsoleBoundInterfaceState : BoundUserInterfaceState
|
||||
{
|
||||
public readonly float MaxRange;
|
||||
public readonly EntityUid? Entity;
|
||||
public readonly List<DockingInterfaceState> Docks;
|
||||
|
||||
public RadarConsoleBoundInterfaceState(
|
||||
float maxRange,
|
||||
EntityUid? entity,
|
||||
List<DockingInterfaceState> docks)
|
||||
{
|
||||
MaxRange = maxRange;
|
||||
Entity = entity;
|
||||
Docks = docks;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// State of each individual docking port for interface purposes
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class DockingInterfaceState
|
||||
{
|
||||
public EntityCoordinates Coordinates;
|
||||
public Angle Angle;
|
||||
public EntityUid Entity;
|
||||
public bool Connected;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum RadarConsoleUiKey : byte
|
||||
{
|
||||
Key
|
||||
}
|
||||
Reference in New Issue
Block a user