mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
* Initial commit * Accidentally included the nukie map changes * Fix the gridcheck * Addressing review * Review change * Review comments
28 lines
910 B
C#
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;
|
|
}
|