Resources
Index
Functions
addRuntimePack
Creatings runtime pack, that will be removed on next launching game stage. Useful for both: client and server.
Parameters
typeStr: string
one of: resource or behavior
name: string
generated pack name that additionaly hashes
Returns string
Complete path to generated pack, it might be used to working with files and directories.
getAllMatchingResources
- since: 2.0.2b24More about capabilities
Available in preloader scripts only!
Parameters
regex: string
Returns string[]
getAllMatchingResourcesInDir
- More about capabilities
Available in preloader scripts only!
Parameters
directory: Object
regex: string
Returns string[]
getAllMatchingResourcesInPath
- More about capabilities
Available in preloader scripts only!
Parameters
directory: Object
regex: string
Returns string[]
getAllResourceDirectories
- More about capabilities
Available in preloader scripts only!
Returns string[]
getAllResourceDirectoriesPaths
- since: 2.0.2b24More about capabilities
Available in preloader scripts only!
Returns string[]
getResourcePath
- since: 2.0.2b24More about capabilities
Available in preloader scripts only!
Parameters
path: string
Returns Nullable<string>
getResourcePathNoVariants
- More about capabilities
Available in preloader scripts only!
Parameters
path: string
Returns Nullable<java.io.File>
Available in preloader scripts only!