diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua b/meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua new file mode 100644 index 00000000..8b27e0a8 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.AssetsManagerEx.lua @@ -0,0 +1,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
\ No newline at end of file |