Merge RulesetCache.LoadDefaultRules and LoadMapRules.

This commit is contained in:
Paul Chote
2015-07-05 13:22:29 +01:00
parent 86bf9086d9
commit 7d62ac2b12
9 changed files with 14 additions and 15 deletions

View File

@@ -43,12 +43,11 @@ namespace OpenRA
this.modData = modData;
}
public Ruleset LoadDefaultRules()
{
return LoadMapRules(null);
}
public Ruleset LoadMapRules(Map map)
/// <summary>
/// Cache and return the Ruleset for a given map.
/// If a map isn't specified then return the default mod Ruleset.
/// </summary>
public Ruleset Load(Map map = null)
{
var m = modData.Manifest;