Files
OldThink/Content.Shared/Pinpointer/NavMapBeaconComponent.cs

37 lines
1.0 KiB
C#
Raw Permalink Normal View History

using Robust.Shared.GameStates;
2023-09-16 18:11:47 +10:00
namespace Content.Shared.Pinpointer;
/// <summary>
/// Will show a marker on a NavMap.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedNavMapSystem))]
[AutoGenerateComponentState]
2023-09-16 18:11:47 +10:00
public sealed partial class NavMapBeaconComponent : Component
{
/// <summary>
/// Defaults to entity name if nothing found.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField]
[AutoNetworkedField]
2023-09-16 18:11:47 +10:00
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;
[ViewVariables(VVAccess.ReadWrite), DataField]
[AutoNetworkedField]
2023-09-16 18:11:47 +10:00
public Color Color = Color.Orange;
/// <summary>
/// Only enabled beacons can be seen on a station map.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField]
[AutoNetworkedField]
public bool Enabled = true;
2023-09-16 18:11:47 +10:00
}