cellular-automata/lib/service/simulation_service.dart
Unknown 6b4786fdd0 Add SimulationService to controls
Will eventually attach to the Simulation directly without first going through Engine. For now just redirects calls to EngineService to keep functions intact.
2018-10-18 12:05:02 +02:00

19 lines
304 B
Dart

import 'package:rules_of_living/service/engine_service.dart';
class SimulationService {
final EngineService engine;
SimulationService(this.engine);
void reset() {
engine.reset();
}
void addRandomPattern() {
engine.addRandomPattern();
}
void clear() {
engine.clear();
}
}