Add navmap beacons (#19388)

This commit is contained in:
metalgearsloth
2023-09-16 18:11:47 +10:00
committed by GitHub
parent a0170dc613
commit e08b0954e5
7 changed files with 261 additions and 33 deletions

View File

@@ -0,0 +1,19 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Pinpointer;
/// <summary>
/// Will show a marker on a NavMap.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class NavMapBeaconComponent : Component
{
/// <summary>
/// Defaults to entity name if nothing found.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("text"), AutoNetworkedField]
public string? Text;
[ViewVariables(VVAccess.ReadWrite), DataField("color"), AutoNetworkedField]
public Color Color = Color.Orange;
}