indiesoftby
indiesoftby/defold-liveupdate-reszip/liveupdate_reszip_ext
HTML5 file loader used by Live Update ResZip.
- GitHub: indiesoftby/defold-liveupdate-reszip — pinned to
1.7.0(released while Defold 1.13.1 was current)- Pick a release from indiesoftby/defold-liveupdate-reszip releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as liveupdate_reszip_ext from "liveupdate_reszip_ext"
- Pick a release from indiesoftby/defold-liveupdate-reszip releases and add its Source code (zip) URL (or a packaged
- Asset Portal: defold-liveupdate-reszip
Functions
liveupdate_reszip_ext.request_file(url: string, on_progress: function, on_error: function, on_load: function)
Starts an asynchronous file request. Available on HTML5.
Parameters
url:string— URL of the file to request.on_progress:function— Called while the file is loading.self:object— The calling script instance.loaded:number— Number of bytes loaded.total:number— Total number of bytes.
on_error:function— Called if the request fails.self:object— The calling script instance.error:string— Error message.
on_load:function— Called when the file has loaded.self:object— The calling script instance.data:string— File contents.