Fix template

This commit is contained in:
Joshua Granick
2014-11-01 10:16:34 -07:00
parent fe17a43f72
commit 07d00ff048

View File

@@ -654,20 +654,25 @@ class DefaultAssetLibrary extends AssetLibrary {
::end:: ::end::
#end #end
#elseif (windows || mac || linux) #else
::if (assets != null)::
#if openfl #if openfl
::foreach assets::::if (type == "font")::class __ASSET__::flatName:: extends openfl.text.Font { public function new () { super (); __fontPath = "::targetPath::"; fontName = "::fontName::"; }} ::if (assets != null)::::foreach assets::::if (type == "font")::class __ASSET__::flatName:: extends openfl.text.Font { public function new () { super (); __fontPath = "::targetPath::"; fontName = "::fontName::"; }}
::end::::end:: ::end::::end::::end::
#end #end
#if (windows || mac || linux)
//::if (assets != null)::
//::foreach assets::::if (embed)::::if (type == "image")::@:bitmap("::sourcePath::") class __ASSET__::flatName:: extends openfl.display.BitmapData {} //::foreach assets::::if (embed)::::if (type == "image")::@:bitmap("::sourcePath::") class __ASSET__::flatName:: extends openfl.display.BitmapData {}
//::elseif (type == "sound")::@:sound("::sourcePath::") class __ASSET__::flatName:: extends openfl.media.Sound {} //::elseif (type == "sound")::@:sound("::sourcePath::") class __ASSET__::flatName:: extends openfl.media.Sound {}
//::elseif (type == "music")::@:sound("::sourcePath::") class __ASSET__::flatName:: extends openfl.media.Sound {} //::elseif (type == "music")::@:sound("::sourcePath::") class __ASSET__::flatName:: extends openfl.media.Sound {}
//::elseif (type == "font")::@:font("::sourcePath::") class __ASSET__::flatName:: extends openfl.text.Font {} //::elseif (type == "font")::@:font("::sourcePath::") class __ASSET__::flatName:: extends openfl.text.Font {}
//::else::@:file("::sourcePath::") class __ASSET__::flatName:: extends lime.utils.ByteArray {} //::else::@:file("::sourcePath::") class __ASSET__::flatName:: extends lime.utils.ByteArray {}
//::end::::end::::end:: //::end::::end::::end::
::end:: //::end::
#end
#end #end
#end #end