StationNameSetupComponent.cs 743 B

1234567891011121314151617181920212223
  1. using Content.Server.Maps.NameGenerators;
  2. namespace Content.Server.Station.Components;
  3. /// <summary>
  4. /// This is used for setting up a station's name.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class StationNameSetupComponent : Component
  8. {
  9. /// <summary>
  10. /// The name template to use for the station.
  11. /// If there's a name generator this should follow it's required format.
  12. /// </summary>
  13. [DataField("mapNameTemplate", required: true)]
  14. public string StationNameTemplate { get; private set; } = default!;
  15. /// <summary>
  16. /// Name generator to use for the station, if any.
  17. /// </summary>
  18. [DataField("nameGenerator")]
  19. public StationNameGenerator? NameGenerator { get; private set; }
  20. }