move Game.worldRenderer into World

This commit is contained in:
Bob
2010-01-18 01:50:24 +13:00
parent b581f248a7
commit 2f568ce829
10 changed files with 17 additions and 15 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using OpenRa.Effects;
using OpenRa.Support;
using OpenRa.FileFormats;
using OpenRa.Graphics;
namespace OpenRa
{
@@ -18,6 +19,8 @@ namespace OpenRa
public readonly Map Map;
public readonly TileSet TileSet;
public readonly WorldRenderer WorldRenderer;
readonly int oreFrequency;
int oreTicks;
@@ -35,6 +38,8 @@ namespace OpenRa
Map.InitOreDensity();
CreateActor("World", new int2(int.MaxValue, int.MaxValue), null);
WorldRenderer = new WorldRenderer(this, Game.renderer);
}
public Actor CreateActor( string name, int2 location, Player owner )