Adding initial commit

This commit is contained in:
underscorediscovery
2013-06-23 00:24:09 -02:30
parent 182dbbe66b
commit 7ce604c914
174 changed files with 144817 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
package nme;
import nmegl.utils.Assets;
class AssetData {
public static var library = new #if haxe3 Map <String, #else Hash <#end LibraryType> ();
public static var path = new #if haxe3 Map <String, #else Hash <#end String> ();
public static var type = new #if haxe3 Map <String, #else Hash <#end AssetType> ();
private static var initialized:Bool = false;
public static function initialize ():Void {
if (!initialized) {
::if (assets != null)::::foreach assets::path.set ("::id::", "::resourceName::");
type.set ("::id::", Reflect.field (AssetType, "::type::".toUpperCase ()));
::end::::end::
::if (libraries != null)::::foreach libraries::library.set ("::name::", Reflect.field (LibraryType, "::type::".toUpperCase ()));
::end::::end::
initialized = true;
}
}
}