6
2025-11-05 11:11:22 +03:00

43 lines
1.3 KiB
C#

using Content.Shared.Shuttles.Components;
using Robust.Shared.Physics.Dynamics.Joints;
namespace Content.Server.Shuttles.Components
{
[RegisterComponent]
public sealed partial class DockingComponent : SharedDockingComponent
{
[DataField("dockedWith")]
public EntityUid? DockedWith;
[ViewVariables]
public Joint? DockJoint;
[DataField("dockJointId")]
public string? DockJointId;
[ViewVariables]
public override bool Docked => DockedWith != null;
/// <summary>
/// Color that gets shown on the radar screen.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("radarColor")]
public Color RadarColor = Color.Purple; // Frontier: DarkViolet<Purple
/// <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;
/// <summary>
/// Name that is shown on the radar screen for this dock, if any.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("name")]
public string? Name = null;
[ViewVariables]
public int PathfindHandle = -1;
}
}