Use Filepaths instead of IFolders where possible.

This commit is contained in:
Paul Chote
2010-12-29 19:14:48 +13:00
parent 829fe6530a
commit fc6438e311
6 changed files with 12 additions and 17 deletions

View File

@@ -85,10 +85,8 @@ namespace OpenRA
public string Owner = null;
}
public Map(string path) : this(FileSystem.OpenPackage(path, int.MaxValue)) {}
public Map(MapStub stub) : this(stub.Container) {}
public Map(IFolder package)
: base(package)
public Map(string path)
: base(path)
{
var yaml = new MiniYaml( null, MiniYaml.FromStream( Container.GetContent( "map.yaml" ) ) );