Files
tbd-station-14/Content.Shared/Pinpointer/NavMapBeaconComponent.cs
Kyle Tyo 7de5002123 Predict Nav Beacon Examine (#39408)
* commit

* Update Content.Shared/Pinpointer/SharedNavMapSystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-08-05 23:20:43 +02:00

34 lines
939 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Pinpointer;
/// <summary>
/// Will show a marker on a NavMap.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedNavMapSystem))]
[AutoGenerateComponentState]
public sealed partial class NavMapBeaconComponent : Component
{
/// <summary>
/// Defaults to entity name if nothing found.
/// </summary>
[DataField, AutoNetworkedField]
public string? Text;
/// <summary>
/// A localization string that populates <see cref="Text"/> if it is null at mapinit.
/// Used so that mappers can still override Text while mapping.
/// </summary>
[DataField]
public LocId? DefaultText;
[DataField, AutoNetworkedField]
public Color Color = Color.Orange;
/// <summary>
/// Only enabled beacons can be seen on a station map.
/// </summary>
[DataField, AutoNetworkedField]
public bool Enabled = true;
}