Project file works with VC# Express, and changes to Game.cs that should have happened last commit :S

This commit is contained in:
Bob
2009-10-06 20:49:21 +13:00
parent f2eeb11d0f
commit 88a2fb50b4
2 changed files with 7 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRa.FileFormats;
using OpenRa.Game.Graphics;
@@ -48,11 +49,9 @@ namespace OpenRa.Game
network = new Network();
buildingCreation.Add("proc", (location, owner) => new Refinery(location, owner, this));
string[] buildings = { "fact", "powr", "apwr", "weap", "barr", "atek", "stek", "dome" };
foreach (string s in buildings)
buildingCreation.Add(s, (location, owner) => new Building(s, location, owner, this));
buildingCreation = buildings.ToDictionary( s => s, s => (Func<int2, Player, Building>)( ( l, o ) => new Building( s, l, o, this ) ) );
buildingCreation.Add( "proc", ( location, owner ) => new Refinery( location, owner, this ) );
controller = new Controller(this); // CAREFUL THERES AN UGLY HIDDEN DEPENDENCY HERE STILL
worldRenderer = new WorldRenderer(renderer, world);