Files
crystall-punk-14/Content.Server/Shuttles/Components/DockingComponent.cs

37 lines
1.1 KiB
C#
Raw Permalink Normal View History

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]
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;
[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;
/// <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
}
}