Replay stuff.
FYI: Don't try to replay a game where you built any vehicles. It WILL fail horribly.
This commit is contained in:
@@ -25,7 +25,9 @@ namespace OpenRa.Game
|
||||
public static PathFinder PathFinder;
|
||||
public static Network network;
|
||||
public static WorldRenderer worldRenderer;
|
||||
public static Controller controller;
|
||||
public static Controller controller;
|
||||
|
||||
public static OrderManager orderManager;
|
||||
|
||||
static int localPlayerIndex;
|
||||
|
||||
@@ -73,7 +75,9 @@ namespace OpenRa.Game
|
||||
worldRenderer = new WorldRenderer(renderer);
|
||||
|
||||
soundEngine = new ISoundEngine();
|
||||
sounds = new Cache<string, ISoundSource>(LoadSound);
|
||||
sounds = new Cache<string, ISoundSource>(LoadSound);
|
||||
|
||||
orderManager = new OrderManager( new OrderSource[] { new LocalOrderSource() }, "replay.rep" );
|
||||
|
||||
PlaySound("intro.aud", false);
|
||||
}
|
||||
@@ -128,7 +132,9 @@ namespace OpenRa.Game
|
||||
world.Update();
|
||||
UnitInfluence.Tick();
|
||||
|
||||
viewport.DrawRegions();
|
||||
viewport.DrawRegions();
|
||||
|
||||
orderManager.Tick();
|
||||
}
|
||||
|
||||
public static bool IsCellBuildable(int2 a, UnitMovementType umt)
|
||||
|
||||
Reference in New Issue
Block a user