Skip to content

Commit

Permalink
Remove name + author from map file (space-wizards#3992)
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth authored May 7, 2023
1 parent e979673 commit 474f4f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions Robust.Server/GameObjects/EntitySystems/MapLoaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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!;
Expand Down Expand Up @@ -931,9 +931,6 @@ private void WriteMetaSection(MappingDataNode rootNode, EntityUid uid)
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);
Expand Down
2 changes: 0 additions & 2 deletions Schemas/mapfile.yml
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 474f4f0

Please sign in to comment.