diff --git a/isometric-park-fna/Engines/SimulationBridgeEngine.cs b/isometric-park-fna/Engines/SimulationBridgeEngine.cs --- a/isometric-park-fna/Engines/SimulationBridgeEngine.cs +++ b/isometric-park-fna/Engines/SimulationBridgeEngine.cs @@ -13,7 +13,7 @@ { [Receives(typeof(GameRateMessage), typeof(TogglePauseMessage))] - [Sends(typeof(SpawnContractMessage), typeof(TickMessage))] + [Sends(typeof(SpawnContractMessage), typeof(SpawnDialogMessage), typeof(TickMessage))] [Reads(typeof(AreaComponent), typeof(BudgetComponent), typeof(BudgetLineComponent), @@ -106,11 +106,16 @@ } + if (this.ticksToSend > 0) { Logging.Trace(String.Format("{0} ticks to send in update", this.ticksToSend)); } + if (this.ticksToSend > 1) + { + Logging.Warning(String.Format("Simulating {0} ticks at once!", this.ticksToSend)); + } for (int i = ticksToSend; i > 0; i--) { SendMessage(new TickMessage { }); @@ -172,6 +177,10 @@ simulation.contracts = new_contract_amount; simulation.enforcement = new_enforcement_amount; + + //Move this here? + // this.simulation.update(dt); + } } diff --git a/isometric-park-fna/Engines/Spawners/ContractSpawner.cs b/isometric-park-fna/Engines/Spawners/ContractSpawner.cs --- a/isometric-park-fna/Engines/Spawners/ContractSpawner.cs +++ b/isometric-park-fna/Engines/Spawners/ContractSpawner.cs @@ -224,7 +224,7 @@ AddComponent(contract, new ImageComponent {ImageIndex = image_index}); AddComponent(contract, new WindowTypeComponent { type = Window.Contract}); AddComponent(contract, new VisibilityComponent { visible = false}); - Logging.Spy(nameAndDescription); + Logging.Info(String.Format("Generated contract {0}: ", nameAndDescription)); return; } else {