Allow mods to set default lobby options.

This commit is contained in:
Paul Chote
2013-08-04 12:03:18 +12:00
parent 8fb7ed4913
commit 40533918f3
6 changed files with 12 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ namespace OpenRA.FileFormats
public readonly Dictionary<string, string> Packages;
public readonly MiniYaml LoadScreen;
public readonly MiniYaml LobbyDefaults;
public readonly Dictionary<string, Pair<string,int>> Fonts;
public readonly int TileSize = 24;
@@ -57,6 +58,7 @@ namespace OpenRA.FileFormats
PackageContents = YamlList(yaml, "PackageContents");
LoadScreen = yaml["LoadScreen"];
LobbyDefaults = yaml["LobbyDefaults"];
Fonts = yaml["Fonts"].NodesDict.ToDictionary(x => x.Key,
x => Pair.New(x.Value.NodesDict["Font"].Value,
int.Parse(x.Value.NodesDict["Size"].Value)));