Move Reset Grid Implementation to Engine
This commit is contained in:
parent
4c1c805f24
commit
2d0e24bdf8
2 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,6 @@ class AppComponent implements OnInit {
|
|||
}
|
||||
|
||||
void onResetClicked() {
|
||||
engine.running = false;
|
||||
engine.reset();
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ class Engine {
|
|||
|
||||
void reset() {
|
||||
_grid.reset();
|
||||
running = false;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
|
|
Loading…
Reference in a new issue