/// <summary> /// Calls the update functions on the systems that are updated on a fixed frequency. /// </summary> /// <param name="deltaTime">Delta time.</param> private void TickFixedFrequency(float deltaTime) { // Progress temperature modelling temperature.Update(deltaTime); PowerNetwork.Update(deltaTime); FluidNetwork.Update(deltaTime); }
/// <summary> /// Calls the update functions on the systems that are updated on a fixed frequency. /// </summary> /// <param name="deltaTime">Delta time.</param> private void TickFixedFrequency(float deltaTime) { FurnitureManager.TickFixedFrequency(deltaTime); // Progress temperature modelling temperature.Update(); PowerNetwork.Update(deltaTime); }
public void UnplugTest() { Connection connection = new Connection(); Assert.IsTrue(powerNetwork.PlugIn(connection)); Assert.AreEqual(1, powerGrids.Count); powerNetwork.Unplug(connection); Assert.AreEqual(1, powerGrids.Count); powerNetwork.Update(1.0f); Assert.AreEqual(0, powerGrids.Count); }
/// <summary> /// Calls the update functions on the systems that are updated on a fixed frequency. /// </summary> /// <param name="deltaTime">Delta time.</param> private void TickFixedFrequency(float deltaTime) { PowerNetwork.Update(deltaTime); FluidNetwork.Update(deltaTime); }