Files
tbd-station-14/Content.Server/Station/Components/BecomesStationComponent.cs
2022-02-16 18:23:23 +11:00

24 lines
682 B
C#

using Content.Server.GameTicking;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Station;
/// <summary>
/// Added to grids saved in maps to designate that they are the 'main station' grid.
/// </summary>
[RegisterComponent]
[Friend(typeof(GameTicker))]
public sealed class BecomesStationComponent : Component
{
/// <summary>
/// Mapping only. Should use StationIds in all other
/// scenarios.
/// </summary>
[DataField("id", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public string Id = default!;
}