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:
parent
7729da3a40
commit
99ead8691b
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class ConfigurationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setGridSize({int x, int y}) {
|
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;
|
Point<int> get gridSize => _sim.gridSize;
|
||||||
|
|
|
@ -19,7 +19,7 @@ class SimulationService {
|
||||||
_engine.clear();
|
_engine.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void set gridSize(Point size) {
|
void set gridSize(Point<int> size) {
|
||||||
_engine.engine.gridSize = size;
|
_engine.engine.gridSize = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue