Files
tbd-station-14/Content.Shared/Station/Components/StationTrackerComponent.cs
Milon a8ff999b08 add StationTrackerComponent (#36803)
* maybe I am cooking

* logmissing

* copy paste oops

* add some stuff

* review

* fix

* rerun tests

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-05-01 00:07:25 +10:00

19 lines
657 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Station.Components;
/// <summary>
/// Component that tracks which station an entity is currently on.
/// Mainly used for UI purposes on the client to easily get station-specific data like alert levels.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedStationSystem))]
public sealed partial class StationTrackerComponent : Component
{
/// <summary>
/// The station this entity is currently on, if any.
/// Null when in space or not on any grid.
/// </summary>
[DataField, AutoNetworkedField]
public EntityUid? Station;
}