Package tripleplay.flump
Class JsonLoader
java.lang.Object
tripleplay.flump.JsonLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic react.RFuture<Library>
loadLibrary
(Platform plat, String baseDir) Loads a JSON encoded library.static Library
loadLibrarySync
(Platform plat, String baseDir) Loads a JSON encoded library synchronously.
-
Constructor Details
-
JsonLoader
public JsonLoader()
-
-
Method Details
-
loadLibrarySync
Loads a JSON encoded library synchronously.- Parameters:
baseDir
- The base directory, containing library.json and texture atlases.- Throws:
Exception
-
loadLibrary
Loads a JSON encoded library.- Parameters:
baseDir
- The base directory, containing library.json and texture atlases.
-