24 lines
709 B
C#
24 lines
709 B
C#
|
|
using Content.Server.Maps.NameGenerators;
|
|||
|
|
|
|||
|
|
namespace Content.Server.Station.Components;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// This is used for setting up a station's name.
|
|||
|
|
/// </summary>
|
|||
|
|
[RegisterComponent]
|
|||
|
|
public sealed class StationNameSetupComponent : Component
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// The name template to use for the station.
|
|||
|
|
/// If there's a name generator this should follow it's required format.
|
|||
|
|
/// </summary>
|
|||
|
|
[DataField("mapNameTemplate", required: true)]
|
|||
|
|
public string StationNameTemplate { get; } = default!;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Name generator to use for the station, if any.
|
|||
|
|
/// </summary>
|
|||
|
|
[DataField("nameGenerator")]
|
|||
|
|
public StationNameGenerator? NameGenerator { get; }
|
|||
|
|
}
|