Remove name + author from map file (#3992)

This commit is contained in:
metalgearsloth
2023-05-08 01:22:14 +10:00
committed by GitHub
parent e979673d54
commit 474f4f09b9
2 changed files with 1 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ public sealed class MapLoaderSystem : EntitySystem
private ISawmill _logLoader = default!;
private static readonly MapLoadOptions DefaultLoadOptions = new();
private const int MapFormatVersion = 4;
private const int MapFormatVersion = 5;
private const int BackwardsVersion = 2;
private MapSerializationContext _context = default!;
@@ -931,9 +931,6 @@ public sealed class MapLoaderSystem : EntitySystem
var meta = new MappingDataNode();
rootNode.Add("meta", meta);
meta.Add("format", MapFormatVersion.ToString(CultureInfo.InvariantCulture));
// TODO: Make these values configurable.
meta.Add("name", "DemoStation");
meta.Add("author", "Space-Wizards");
var xform = Transform(uid);
var isPostInit = _mapManager.IsMapInitialized(xform.MapID);

View File

@@ -1,8 +1,6 @@
# schema file for Yamale
meta:
format: int()
name: str()
author: str()
postmapinit: bool()
tilemap: map(str(), key=int())
entities: list(include('proto'), min=1)