Add simple stateChanges map into Simulation

This commit is contained in:
Unknown 2018-10-02 14:55:39 +02:00
parent 9c37f87045
commit c50e92fb19
2 changed files with 9 additions and 10 deletions

View file

@ -101,7 +101,8 @@ class Engine {
/// directly, since it is automatically taken care of by the processing function.
/// If simulation should be advanced manually one time, prefer using step().
void update() {
if (!_grid.update()) running = false;
// TODO: create hasUpdated/hasAdvanced method in simulation to abstract actual updating away
if (_grid.update().length != 0) running = false;
}
/// Advances Logic One Update