Skip to content

Commit 21eefc1

Browse files
Use IMap on AssetCache instead
1 parent bb18d13 commit 21eefc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lime/utils/AssetCache.hx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package lime.utils;
22

33
import haxe.macro.Compiler;
4+
import haxe.Constraints.IMap;
45
import lime.media.AudioBuffer;
56
import lime.graphics.Image;
67
#if !(macro || commonjs)
@@ -13,10 +14,10 @@ import lime._internal.macros.AssetsMacro;
1314
#end
1415
class AssetCache
1516
{
16-
public var audio:Map<String, AudioBuffer>;
17+
public var audio:IMap<String, AudioBuffer>;
1718
public var enabled:Bool = true;
18-
public var image:Map<String, Image>;
19-
public var font:Map<String, Dynamic /*Font*/>;
19+
public var image:IMap<String, Image>;
20+
public var font:IMap<String, Dynamic /*Font*/>;
2021
public var version:Int;
2122

2223
public function new()

0 commit comments

Comments
 (0)