2021-11-21 17:09:49 +11:00
|
|
|
using Content.Shared.Shuttles.Components;
|
|
|
|
|
using Robust.Shared.Physics.Dynamics.Joints;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Shuttles.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class DockingComponent : SharedDockingComponent
|
2021-11-21 17:09:49 +11:00
|
|
|
{
|
2022-01-12 00:47:13 +11:00
|
|
|
[DataField("dockedWith")]
|
|
|
|
|
public EntityUid? DockedWith;
|
2021-11-21 17:09:49 +11:00
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public Joint? DockJoint;
|
|
|
|
|
|
2022-11-16 20:22:11 +01:00
|
|
|
[DataField("dockJointId")]
|
2022-07-15 14:11:41 +10:00
|
|
|
public string? DockJointId;
|
|
|
|
|
|
2021-11-21 17:09:49 +11:00
|
|
|
[ViewVariables]
|
|
|
|
|
public override bool Docked => DockedWith != null;
|
2022-07-09 19:25:32 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Color that gets shown on the radar screen.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("radarColor")]
|
|
|
|
|
public Color RadarColor = Color.DarkViolet;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Color that gets shown on the radar screen when the dock is highlighted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("highlightedRadarColor")]
|
|
|
|
|
public Color HighlightedRadarColor = Color.Magenta;
|
2022-09-30 14:39:48 +10:00
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public int PathfindHandle = -1;
|
2021-11-21 17:09:49 +11:00
|
|
|
}
|
|
|
|
|
}
|