* Update StationSpawningSystem.cs Web-edit to allow feeding in an existing entity. * Update StationSpawningSystem.cs value type moment * Update StationSpawningSystem.cs * Oh goddamnit this is a refactor now. * awawawa * aaaaaaaaaaa * ee * forgot records. * no records? no records. * What's in a name? * Sloth forcing me to do the refactor properly smh. * e * optional evac in test. * tests pls work * awa --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
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; }
|
|
}
|