The data of the file.
Name of the file to add. May include a path. e.g. "textures/123.jpg". Has to be lowercase.
Optional
pCompress: booleanIf true the file should be compressed (if supported by the implementation) otherwise the file should not be compressed. (Default: true)
Optional
pCacheable: booleanIf true the file may be cached. The filename should be used as cache id in this case. (Default: false)
Adds an already cached file to the container. True should be returned if the file was added, otherwise false (e.g. if the file was not found inside the cache).
Name of the file to add. May include a path. e.g. "textures/123.jpg". Has to be lowercase.
Optional
pCompress: booleanIf true the file should be compressed (if supported by the implementation) otherwise the file should not be compressed. (Default: true)
Adds a binary or text file to the container using an url.
The file url.
Name of the file to add. May include a path. e.g. "textures/123.jpg". Has to be lowercase.
If true the file containes binary data.
Optional
pCompress: booleanIf true the file should be compressed (if supported by the implementation) otherwise the file should not be compressed. (Default: true)
Optional
pCacheable: booleanIf true the file may be cached. The filename should be used as cache id in this case. (Default: false)
Retrieves a binary or text file from the container. If the file doesn't exist the promise has to be rejected with an FileNotFoundError.
Name of the file. May include a path. e.g. "textures/123.jpg".
If true the file containes binary data and is returned as ArrayBuffer otherwise as string.
Returns a list of files which are part of the given folder and its sub folders. The files are returned as a relative path including the file name. If the folder doesn't exist the promise has to be rejected with an FileNotFoundError.
Optional
pFolderPath: stringPath of the folder.
Generated using TypeDoc
Adds a binary or text file to the container.