High Level Process

PHOTO EMBED

Sat Dec 11 2021 14:02:44 GMT+0000 (UTC)

Saved by @vincentleoooo #javascript

function simStep() {
  if (isRunning) {
   // Chunk of code was here, deleted for clarity.

    if (enteredPassengers < passengerCount) {
      removeDynamicAgents();
      addDynamicAgents();
      updateDynamicAgents();
    } else if (exitedPassengers < passengerCount) {
      removeDynamicAgents();
      updateDynamicAgents();
    } else {
      /* 
      Chunk of code was here, deleted for clarity.
      Mainly to stop the simulation and to re-run if multiple simulations
      were configured.
      */
    }
}
content_copyCOPY