Unknown
6b4786fdd0
Will eventually attach to the Simulation directly without first going through Engine. For now just redirects calls to EngineService to keep functions intact.
19 lines
304 B
Dart
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();
|
|
}
|
|
}
|