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
Parameters
regex: string
Returns string[]
getAllMatchingResourcesInDir
Parameters
directory: Object
regex: string
Returns string[]
getAllMatchingResourcesInPath
Parameters
directory: Object
regex: string
Returns string[]
getAllResourceDirectories
Returns string[]
getAllResourceDirectoriesPaths
Returns string[]
getResourcePath
Parameters
path: string
Returns Nullable<string>
getResourcePathNoVariants
Parameters
path: string
Returns Nullable<java.io.File>
searchFilesInDir
Parameters
result: string[]
baseDir: File
file: File
regex: string
Returns void
Available in preloader scripts only!