2018-08-23 12:12:22 +00:00
|
|
|
import 'package:rules_of_living/service/engine_service.dart';
|
|
|
|
|
|
|
|
class ConfigurationService {
|
|
|
|
final EngineService engineService;
|
|
|
|
|
|
|
|
bool showGrid;
|
2018-08-25 13:26:44 +00:00
|
|
|
|
|
|
|
int _simSpeed;
|
|
|
|
int get simSpeed => _simSpeed;
|
|
|
|
void set simSpeed(int val) {
|
|
|
|
_simSpeed = 5;
|
|
|
|
}
|
2018-08-23 12:12:22 +00:00
|
|
|
|
|
|
|
ConfigurationService(this.engineService) {
|
|
|
|
showGrid = false;
|
|
|
|
simSpeed = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
void toggleGrid() {
|
|
|
|
showGrid = !showGrid;
|
|
|
|
}
|
|
|
|
}
|