untangling WorldRenderer from World

This commit is contained in:
Bob
2010-10-12 01:11:56 +13:00
parent 1c1483377c
commit 597dba8584
17 changed files with 162 additions and 124 deletions

View File

@@ -57,8 +57,6 @@ namespace OpenRA
public readonly Map Map;
public readonly TileSet TileSet;
public readonly WorldRenderer WorldRenderer;
IOrderGenerator orderGenerator_;
public IOrderGenerator OrderGenerator
{
@@ -97,8 +95,6 @@ namespace OpenRA
TileSet = Rules.TileSets[Map.Tileset];
TileSet.LoadTiles();
WorldRenderer = new WorldRenderer(this);
WorldActor = CreateActor( "World", new TypeDictionary() );
Queries = new AllQueries(this);
@@ -170,8 +166,6 @@ namespace OpenRA
Game.viewport.Tick();
while (frameEndActions.Count != 0)
frameEndActions.Dequeue()(this);
WorldRenderer.Tick();
}
public IEnumerable<Actor> Actors { get { return actors; } }