git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1336 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user