diff --git a/OpenRa.Game/Game Code.cd b/OpenRa.Game/Game Code.cd index 8e1bb5eeb0..fa8e0fb818 100644 --- a/OpenRa.Game/Game Code.cd +++ b/OpenRa.Game/Game Code.cd @@ -13,6 +13,7 @@ + @@ -20,6 +21,7 @@ AAAAAAAIAAAAAAAAAAACAgAAABAAAAAIAAAAAIAAAAA= @@ -36,5 +38,22 @@ Graphics\Viewport.cs + + + + + + AAYAACABABAAgAAAAIAABgAAAAAAAAAIAAAAAAAAAAA= + World.cs + + + + + \ No newline at end of file diff --git a/OpenRa.Game/Graphics/WorldRenderer.cs b/OpenRa.Game/Graphics/WorldRenderer.cs index 32d9a20d0f..df8b7a6a57 100644 --- a/OpenRa.Game/Graphics/WorldRenderer.cs +++ b/OpenRa.Game/Graphics/WorldRenderer.cs @@ -14,8 +14,8 @@ namespace OpenRa.Game.Graphics public WorldRenderer(Renderer renderer, Game game) { - // TODO: this is layout policy. it belongs at a higher level than this. - + // TODO: this is layout policy. it belongs at a higher level than this. + this.game = game; region = Region.Create(game.viewport, DockStyle.Left, game.viewport.Width - 128, Draw, game.controller.HandleMouseInput); diff --git a/OpenRa.Game/World.cs b/OpenRa.Game/World.cs index 1a19514d66..3fca98f2e3 100644 --- a/OpenRa.Game/World.cs +++ b/OpenRa.Game/World.cs @@ -9,8 +9,9 @@ namespace OpenRa.Game { List actors = new List(); List> frameEndActions = new List>(); - - public readonly Game game; + readonly Game game; + int lastTime = Environment.TickCount; + const int timestep = 40; public World(Game game) { this.game = game; } @@ -18,10 +19,6 @@ namespace OpenRa.Game public void Remove( Actor a ) { actors.Remove( a ); } public void AddFrameEndTask( Action a ) { frameEndActions.Add( a ); } - int lastTime = Environment.TickCount; - - const int timestep = 40; - public void Update() { int t = Environment.TickCount;