Station beacons (#23136)

* Station beacons

* crate

* remove navmap from warp points

* ack

* oh damn

* okay emisser
This commit is contained in:
Nemanja
2023-12-28 19:02:21 -05:00
committed by GitHub
parent aa8861ab00
commit 99d78c4b97
18 changed files with 899 additions and 103 deletions

View File

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