◆ addResourcePack()
◆ cacheLocalFile()
- Parameters
-
- Returns
- boolean
◆ cacheLocalFileAsync()
◆ clear()
Unload all ResourcePacks, clear local file caches, reset globalImageScaleFactor.
- Returns
- lstg.ResourceMgr
◆ clearLocalFileCache()
◆ extractFile()
Extract data in pack into a file
param filePath The file path
param targetPath The full path to the file you want to save data
return If it's successed
- Parameters
-
filePath | string |
targetPath | string |
- Returns
- boolean
◆ getBufferFromFile()
◆ getGlobalImageScaleFactor()
◆ getInstance()
◆ getResourcePack()
◆ getResourcePacks()
Gives a vector of all ResourcePacks in priority order (higher in front).
- Returns
- lstg.ResourcePack[]
◆ getStringFromFile()
◆ getStringFromLocalFile()
◆ isFileOrDirectoryExist()
Returns if the file path exists in any ResourcePack.
- Parameters
-
- Returns
- boolean
◆ isLocalFileCached()
- Parameters
-
- Returns
- boolean
◆ isResourcePackLoaded()
- Parameters
-
- Returns
- boolean
◆ listCachedLocalFiles()
◆ loadLocalFileAndCache()
◆ loadResourcePack()
◆ removeLocalFileCache()
- Parameters
-
- Returns
- boolean
◆ setGlobalImageScaleFactor()
◆ unloadAllResourcePacks()
◆ unloadResourcePack()
- Parameters
-
- Returns
- boolean
The documentation for this class was generated from the following file: