* 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>
19 lines
657 B
C#
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;
|
|
}
|