Make gridSize in Services pass correct signature

Both need to conform to Point<int> to be accepted by the engine.
This commit is contained in:
Unknown 2018-10-18 12:29:46 +02:00
parent 7729da3a40
commit 99ead8691b
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class ConfigurationService {
}
void setGridSize({int x, int y}) {
_sim.gridSize = Point(x ?? gridSize.x, y ?? gridSize.y);
_sim.gridSize = Point<int>(x ?? gridSize.x, y ?? gridSize.y);
}
Point<int> get gridSize => _sim.gridSize;

View File

@ -19,7 +19,7 @@ class SimulationService {
_engine.clear();
}
void set gridSize(Point size) {
void set gridSize(Point<int> size) {
_engine.engine.gridSize = size;
}