Delta-v/Content.Shared/Station/Components/StationDataComponent.cs

24 lines
751 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Station.Components;
/// <summary>
/// Stores core information about a station, namely its config and associated grids.
/// All station entities will have this component.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedStationSystem))]
public sealed partial class StationDataComponent : Component
{
/// <summary>
/// The game map prototype, if any, associated with this station.
/// </summary>
[DataField]
public StationConfig? StationConfig;
/// <summary>
/// List of all grids this station is part of.
/// </summary>
[DataField, AutoNetworkedField]
public HashSet<EntityUid> Grids = new();
}