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

@@ -20,7 +20,6 @@ namespace OpenRa
public static World world;
internal static Viewport viewport;
public static PathFinder PathFinder;
public static WorldRenderer worldRenderer;
public static Controller controller;
internal static Chrome chrome;
public static UserSettings Settings;
@@ -43,7 +42,7 @@ namespace OpenRa
public static bool skipMakeAnims = true;
static Renderer renderer;
internal static Renderer renderer;
static bool usingAftermath;
static int2 clientSize;
static HardwarePalette palette;
@@ -79,8 +78,6 @@ namespace OpenRa
players[i] = new Player(i, LobbyInfo.Clients.FirstOrDefault(a => a.Index == i));
}
worldRenderer = new WorldRenderer(renderer);
SequenceProvider.Initialize(usingAftermath);
viewport = new Viewport(clientSize, Game.world.Map.Offset, Game.world.Map.Offset + Game.world.Map.Size, renderer);