OLD | NEW |
| (Empty) |
1 library pop_pop_win.html; | |
2 | |
3 import 'dart:async'; | |
4 import 'dart:html'; | |
5 | |
6 import 'package:bot/bot.dart'; | |
7 import 'package:pop_pop_win/platform_target.dart'; | |
8 | |
9 import 'game.dart'; | |
10 | |
11 part 'html/high_score_view.dart'; | |
12 part 'html/game_view.dart'; | |
13 part 'html/game_storage.dart'; | |
14 part 'html/game_manager.dart'; | |
15 | |
16 PlatformTarget _platformImpl; | |
17 | |
18 void initPlatform(PlatformTarget value) { | |
19 assert(value != null); | |
20 assert(!value.initialized); | |
21 assert(_platformImpl == null); | |
22 _platformImpl = value; | |
23 _platformImpl.initialize(); | |
24 } | |
25 | |
26 PlatformTarget get targetPlatform { | |
27 if (_platformImpl == null) { | |
28 initPlatform(new PlatformTarget()); | |
29 } | |
30 return _platformImpl; | |
31 } | |
OLD | NEW |