Split Simulation & Controls into Components
This commit is contained in:
parent
917d1c3fab
commit
c86d8d8b59
8 changed files with 123 additions and 72 deletions
11
lib/service/engine_service.dart
Normal file
11
lib/service/engine_service.dart
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import 'dart:html' as html;
|
||||
|
||||
import 'package:rules_of_living/src/Engine.dart';
|
||||
|
||||
class EngineService {
|
||||
Engine _engine;
|
||||
|
||||
Engine get engine => _engine;
|
||||
|
||||
void create(html.CanvasElement canvas) => _engine = Engine(canvas);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue