cellular-automata/lib/service/configuration_service.dart

17 lines
307 B
Dart
Raw Normal View History

import 'package:rules_of_living/service/engine_service.dart';
class ConfigurationService {
final EngineService engineService;
bool showGrid;
int simSpeed;
ConfigurationService(this.engineService) {
showGrid = false;
simSpeed = 5;
}
void toggleGrid() {
showGrid = !showGrid;
}
}