blob: 8b27e0a842191785c912a64720a81626223227d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
---@class cc.AssetsManagerEx :cc.Ref
local AssetsManagerEx={ }
cc.AssetsManagerEx=AssetsManagerEx
---* @brief Gets the current update state.
---@return int
function AssetsManagerEx:getState () end
---* @brief Function for retrieving the max concurrent task count
---@return int
function AssetsManagerEx:getMaxConcurrentTask () end
---* @brief Check out if there is a new version of manifest.<br>
---* You may use this method before updating, then let user determine whether<br>
---* he wants to update resources.
---@return self
function AssetsManagerEx:checkUpdate () end
---* @brief Set the verification function for checking whether downloaded asset is correct, e.g. using md5 verification<br>
---* param callback The verify callback function
---@param callback function
---@return self
function AssetsManagerEx:setVerifyCallback (callback) end
---* @brief Gets storage path.
---@return string
function AssetsManagerEx:getStoragePath () end
---* @brief Update with the current local manifest.
---@return self
function AssetsManagerEx:update () end
---* @brief Set the handle function for comparing manifests versions<br>
---* param handle The compare function
---@param handle function
---@return self
function AssetsManagerEx:setVersionCompareHandle (handle) end
---* @brief Function for setting the max concurrent task count
---@param max int
---@return self
function AssetsManagerEx:setMaxConcurrentTask (max) end
---* @brief Function for retrieving the local manifest object
---@return cc.Manifest
function AssetsManagerEx:getLocalManifest () end
---* @brief Function for retrieving the remote manifest object
---@return cc.Manifest
function AssetsManagerEx:getRemoteManifest () end
---* @brief Reupdate all failed assets under the current AssetsManagerEx context
---@return self
function AssetsManagerEx:downloadFailedAssets () end
---* @brief Create function for creating a new AssetsManagerEx<br>
---* param manifestUrl The url for the local manifest file<br>
---* param storagePath The storage path for downloaded assets<br>
---* warning The cached manifest in your storage path have higher priority and will be searched first,<br>
---* only if it doesn't exist, AssetsManagerEx will use the given manifestUrl.
---@param manifestUrl string
---@param storagePath string
---@return self
function AssetsManagerEx:create (manifestUrl,storagePath) end
---*
---@param manifestUrl string
---@param storagePath string
---@return self
function AssetsManagerEx:AssetsManagerEx (manifestUrl,storagePath) end
|