2023-12-28 19:02:21 -05:00
|
|
|
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>
|
2023-12-28 19:02:21 -05:00
|
|
|
[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>
|
2023-09-23 20:15:05 +01:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField]
|
2023-12-28 19:02:21 -05:00
|
|
|
[AutoNetworkedField]
|
2023-09-16 18:11:47 +10:00
|
|
|
public string? Text;
|
|
|
|
|
|
2024-03-28 01:53:18 -04:00
|
|
|
/// <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;
|
|
|
|
|
|
2023-09-23 20:15:05 +01:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField]
|
2023-12-28 19:02:21 -05:00
|
|
|
[AutoNetworkedField]
|
2023-09-16 18:11:47 +10:00
|
|
|
public Color Color = Color.Orange;
|
2023-09-23 20:15:05 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Only enabled beacons can be seen on a station map.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField]
|
2023-12-28 19:02:21 -05:00
|
|
|
[AutoNetworkedField]
|
2023-09-23 20:15:05 +01:00
|
|
|
public bool Enabled = true;
|
2023-09-16 18:11:47 +10:00
|
|
|
}
|