Add navmap beacon to armed nukes (#20394)

This commit is contained in:
deltanedas
2023-09-23 20:15:05 +01:00
committed by GitHub
parent eb4a9c4833
commit f747bfe5fc
4 changed files with 44 additions and 4 deletions

View File

@@ -5,15 +5,21 @@ namespace Content.Shared.Pinpointer;
/// <summary>
/// Will show a marker on a NavMap.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[RegisterComponent, Access(typeof(SharedNavMapSystem))]
public sealed partial class NavMapBeaconComponent : Component
{
/// <summary>
/// Defaults to entity name if nothing found.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("text"), AutoNetworkedField]
[ViewVariables(VVAccess.ReadWrite), DataField]
public string? Text;
[ViewVariables(VVAccess.ReadWrite), DataField("color"), AutoNetworkedField]
[ViewVariables(VVAccess.ReadWrite), DataField]
public Color Color = Color.Orange;
/// <summary>
/// Only enabled beacons can be seen on a station map.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField]
public bool Enabled = true;
}