Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
    /// <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);
        }
Esempio n. 4
0
 /// <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);
 }