2022-06-26 15:20:45 +10:00
|
|
|
|
using Content.Server.Shuttles.Systems;
|
|
|
|
|
|
using Content.Server.Station.Systems;
|
2023-05-19 15:45:09 -05:00
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations;
|
|
|
|
|
|
using Robust.Shared.Utility;
|
2022-05-10 13:43:30 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Station.Components;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-06-26 15:20:45 +10:00
|
|
|
|
/// Stores core information about a station, namely its config and associated grids.
|
2022-05-10 13:43:30 -05:00
|
|
|
|
/// All station entities will have this component.
|
|
|
|
|
|
/// </summary>
|
2022-06-07 15:26:28 +02:00
|
|
|
|
[RegisterComponent, Access(typeof(StationSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class StationDataComponent : Component
|
2022-05-10 13:43:30 -05:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The game map prototype, if any, associated with this station.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("stationConfig")]
|
|
|
|
|
|
public StationConfig? StationConfig = null;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// List of all grids this station is part of.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("grids")]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public HashSet<EntityUid> Grids = new();
|
2022-05-10 13:43:30 -05:00
|
|
|
|
}
|