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

@@ -54,7 +54,7 @@ public sealed partial class BiomeComponent : Component
/// Currently active chunks
/// </summary>
[DataField("loadedChunks")]
public readonly HashSet<Vector2i> LoadedChunks = new();
public HashSet<Vector2i> LoadedChunks = new();
#region Markers
@@ -68,7 +68,7 @@ public sealed partial class BiomeComponent : Component
/// Track what markers we've loaded already to avoid double-loading.
/// </summary>
[DataField("loadedMarkers", customTypeSerializer:typeof(PrototypeIdDictionarySerializer<HashSet<Vector2i>, BiomeMarkerLayerPrototype>))]
public readonly Dictionary<string, HashSet<Vector2i>> LoadedMarkers = new();
public Dictionary<string, HashSet<Vector2i>> LoadedMarkers = new();
[DataField("markerLayers", customTypeSerializer: typeof(PrototypeIdListSerializer<BiomeMarkerLayerPrototype>))]
public List<string> MarkerLayers = new();