Theater definitions in yaml

This commit is contained in:
Paul Chote
2010-03-04 18:26:43 +13:00
parent 1914a8adbe
commit 724928cf56
10 changed files with 82 additions and 16 deletions

View File

@@ -38,9 +38,9 @@ namespace OpenRA.FileFormats
Dictionary<string, TileTemplate> walkability
= new Dictionary<string,TileTemplate>();
public Walkability()
public Walkability(string templatesFile)
{
var file = new IniFile( FileSystem.Open( "templates.ini" ) );
var file = new IniFile( FileSystem.Open( templatesFile ) );
foreach (var section in file.Sections)
{