git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1336 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-24 06:28:44 +00:00
parent a5cc26df09
commit 51bc9aa134
4 changed files with 59 additions and 9 deletions

View File

@@ -47,16 +47,19 @@ namespace OpenRa.Game
{
return new Refinery( location, palette );
} );
buildingCreation.Add( "powr",
delegate( int2 location, int palette )
string[] buildings = { "powr", "apwr", "weap", "barr", "atek", "stek", "dome" };
foreach (string s in buildings)
AddBuilding(s);
}
void AddBuilding(string name)
{
buildingCreation.Add(name,
delegate(int2 location, int palette)
{
return new Building( "powr", location, palette );
} );
buildingCreation.Add( "apwr",
delegate( int2 location, int palette )
{
return new Building( "apwr", location, palette );
} );
return new Building(name, location, palette);
});
}
public void Tick()