Add navmap beacon to armed nukes (#20394)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user