Refactor serialization copying to use source generators (#19412)
This commit is contained in:
@@ -19,19 +19,19 @@ public sealed partial class GameMapPrototype : IPrototype
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
[IdDataField]
|
||||
public string ID { get; } = default!;
|
||||
public string ID { get; private set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Name of the map to use in generic messages, like the map vote.
|
||||
/// </summary>
|
||||
[DataField("mapName", required: true)]
|
||||
public string MapName { get; } = default!;
|
||||
public string MapName { get; private set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// Relative directory path to the given map, i.e. `/Maps/saltern.yml`
|
||||
/// </summary>
|
||||
[DataField("mapPath", required: true)]
|
||||
public ResPath MapPath { get; } = default!;
|
||||
public ResPath MapPath { get; private set; } = default!;
|
||||
|
||||
[DataField("stations", required: true)]
|
||||
private Dictionary<string, StationConfig> _stations = new();
|
||||
|
||||
Reference in New Issue
Block a user