Initial support for libraries using asset bundles

This commit is contained in:
Joshua Granick
2019-06-21 12:15:58 -07:00
parent f50904e1d4
commit 7c4110fbef
3 changed files with 68 additions and 33 deletions

View File

@@ -74,7 +74,9 @@ import sys.FileSystem;
library = AssetLibrary.fromManifest (manifest);
Assets.registerLibrary ("::library::", library);
::else::Assets.libraryPaths["::library::"] = rootPath + "::resourceName::";
::end::::end::::end::::end::
::end::::end::::if (type == "bundle")::
Assets.bundlePaths["::library::"] = rootPath + "::resourceName::";
::end::::end::::end::
::foreach libraries::::if (preload)::library = Assets.getLibrary ("::name::");
if (library != null) preloadLibraries.push (library);