mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
32 lines
1 KiB
C#
32 lines
1 KiB
C#
using Content.Shared.Roles;
|
|
using Content.Shared.Station.Systems;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
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(StationSystem))]
|
|
public sealed partial class StationDataComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The game map prototype, if any, associated with this station.
|
|
/// </summary>
|
|
[DataField]
|
|
public StationConfig? StationConfig;
|
|
|
|
/// <summary>
|
|
/// The map-specific profile used to order jobs on this station.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public ProtoId<JobWeightPrototype>? JobWeights;
|
|
|
|
/// <summary>
|
|
/// List of all grids this station is part of.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public HashSet<EntityUid> Grids = new();
|
|
}
|