From 99ead8691bc22b1dfe3676e61ded0757409f70be Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 18 Oct 2018 12:29:46 +0200 Subject: [PATCH] Make gridSize in Services pass correct signature Both need to conform to Point to be accepted by the engine. --- lib/service/configuration_service.dart | 2 +- lib/service/simulation_service.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service/configuration_service.dart b/lib/service/configuration_service.dart index 045e66c..ffd0b78 100644 --- a/lib/service/configuration_service.dart +++ b/lib/service/configuration_service.dart @@ -37,7 +37,7 @@ class ConfigurationService { } void setGridSize({int x, int y}) { - _sim.gridSize = Point(x ?? gridSize.x, y ?? gridSize.y); + _sim.gridSize = Point(x ?? gridSize.x, y ?? gridSize.y); } Point get gridSize => _sim.gridSize; diff --git a/lib/service/simulation_service.dart b/lib/service/simulation_service.dart index 45a7b09..0c967ef 100644 --- a/lib/service/simulation_service.dart +++ b/lib/service/simulation_service.dart @@ -19,7 +19,7 @@ class SimulationService { _engine.clear(); } - void set gridSize(Point size) { + void set gridSize(Point size) { _engine.engine.gridSize = size; }