Files
space-station-14/Content.Shared/Pinpointer/StationMapComponent.cs
SlamBamActionman 435b7d5cf8 Add the ability for station maps to track grids they are not on (#41248)
* Initial commit

* Accidentally included the nukie map changes

* Fix the gridcheck

* Addressing review

* Review change

* Review comments
2026-01-12 02:47:47 +00:00

28 lines
910 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Pinpointer;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class StationMapComponent : Component
{
/// <summary>
/// Whether or not to show the user's location on the map.
/// </summary>
[DataField, AutoNetworkedField]
public bool ShowLocation = true;
/// <summary>
/// If true, when this entity initializes it will target and remember the station grid of the map the entity is in.
/// If there is no station, the entity will target a random station in the current session.
/// </summary>
[DataField]
public bool InitializeWithStation = false;
/// <summary>
/// The target grid that the map will display.
/// If null, it will display the user's current grid.
/// </summary>
[DataField, AutoNetworkedField]
public EntityUid? TargetGrid;
}