Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Side by Side Diff: sky/sdk/example/game/lib/image_map.dart

Issue 1210173004: Move examples to //sky/sdk/example (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/example/game/lib/game_demo_world.dart ('k') | sky/sdk/example/game/lib/node.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of sprites; 1 part of sprites;
2 2
3 typedef void ImageMapCallback(ImageMap preloader); 3 typedef void ImageMapCallback(ImageMap preloader);
4 4
5 class ImageMap { 5 class ImageMap {
6 6
7 Map<String, Image> _images; 7 Map<String, Image> _images;
8 8
9 int _totalNumImages = 0; 9 int _totalNumImages = 0;
10 int _numLoadedImages = 0; 10 int _numLoadedImages = 0;
(...skipping 17 matching lines...) Expand all
28 // Everything loaded, make callback 28 // Everything loaded, make callback
29 _callback(this); 29 _callback(this);
30 } 30 }
31 }); 31 });
32 } 32 }
33 33
34 Image getImage(String url) => _images[url]; 34 Image getImage(String url) => _images[url];
35 35
36 Image operator [](String url) => _images[url]; 36 Image operator [](String url) => _images[url];
37 } 37 }
OLDNEW
« no previous file with comments | « sky/sdk/example/game/lib/game_demo_world.dart ('k') | sky/sdk/example/game/lib/node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698