DockingComponent.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Content.Shared.Shuttles.Components;
  2. using Robust.Shared.Physics.Dynamics.Joints;
  3. namespace Content.Server.Shuttles.Components
  4. {
  5. [RegisterComponent]
  6. public sealed partial class DockingComponent : SharedDockingComponent
  7. {
  8. [DataField("dockedWith")]
  9. public EntityUid? DockedWith;
  10. [ViewVariables]
  11. public Joint? DockJoint;
  12. [DataField("dockJointId")]
  13. public string? DockJointId;
  14. [ViewVariables]
  15. public override bool Docked => DockedWith != null;
  16. /// <summary>
  17. /// Color that gets shown on the radar screen.
  18. /// </summary>
  19. [ViewVariables(VVAccess.ReadWrite), DataField("radarColor")]
  20. public Color RadarColor = Color.DarkViolet;
  21. /// <summary>
  22. /// Color that gets shown on the radar screen when the dock is highlighted.
  23. /// </summary>
  24. [ViewVariables(VVAccess.ReadWrite), DataField("highlightedRadarColor")]
  25. public Color HighlightedRadarColor = Color.Magenta;
  26. [ViewVariables]
  27. public int PathfindHandle = -1;
  28. }
  29. }