cellular-automata/lib/service/configuration_service.dart

22 lines
396 B
Dart
Raw Normal View History

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