Refactor serialization copying to use source generators (#19412)

This commit is contained in:
DrSmugleaf
2023-08-22 18:14:33 -07:00
committed by GitHub
parent 08b43990ab
commit a88e747a0b
1737 changed files with 2532 additions and 2521 deletions

View File

@@ -6,18 +6,18 @@ namespace Content.Server.Station.Components;
/// This is used for setting up a station's name.
/// </summary>
[RegisterComponent]
public sealed class StationNameSetupComponent : Component
public sealed partial 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!;
public string StationNameTemplate { get; private set; } = default!;
/// <summary>
/// Name generator to use for the station, if any.
/// </summary>
[DataField("nameGenerator")]
public StationNameGenerator? NameGenerator { get; }
public StationNameGenerator? NameGenerator { get; private set; }
}