Add navmap beacons (#19388)
This commit is contained in:
19
Content.Shared/Pinpointer/NavMapBeaconComponent.cs
Normal file
19
Content.Shared/Pinpointer/NavMapBeaconComponent.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user