Beispiel #1
0
        public static string GetAssetBundleFileName(
            ePlatformType osType, string fileName)
        {
            string url = GetABCacheURL(osType);

            return(AssetsCommon.BuildFileName(url, fileName));
        }
Beispiel #2
0
        public static string GetPackageFullFileName(ABPathInfo pathInfo, int index)
        {
            string assetPath = GetFenBaoPath(pathInfo);
            string fileName  = PathConstant.FileName.GetPackage(pathInfo.Version, index);

            return(AssetsCommon.BuildFileName(assetPath, fileName));
        }
Beispiel #3
0
        public static string GetPackageFileName(
            ABPathInfo pathInfo, string fileName)
        {
            string url = GetFenBaoURL(pathInfo);

            return(AssetsCommon.BuildFileName(url, fileName));
        }
Beispiel #4
0
        public static string GetVersionListURL(ePlatformType osType)
        {
            string assetFolderName = PathConstant.FolderName.FILE_MANIFEST;
            string osFolderName    = AssetsCommon.GetPlatformFolderName(osType);

            List <string> paths = new List <string>()
            {
                assetFolderName,
                osFolderName
            };
            string url = AssetsCommon.BuildPath(URL, paths);

            return(AssetsCommon.BuildFileName(url, PathConstant.FileName.VERSION_LIST));
        }
Beispiel #5
0
    public static string GetABFile(string assetName)
    {
        ePlatformType osType = UnpackCommon.GetOsType();

        string dataPath     = Application.streamingAssetsPath;
        string osFolderName = AssetsCommon.GetPlatformFolderName(osType);

        List <string> folders = new List <string>()
        {
            osFolderName
        };
        string path = AssetsCommon.BuildPath(dataPath, folders);

        if (!Directory.Exists(path))
        {
            Directory.CreateDirectory(path);
        }

        return(AssetsCommon.BuildFileName(path, assetName));
    }
Beispiel #6
0
        public static string GetFenBaoURL(ABPathInfo pathInfo)
        {
            string url = GetFileManifestURL(pathInfo);

            return(AssetsCommon.BuildFileName(url, PathConstant.FileName.FEN_BAO));
        }
Beispiel #7
0
        public static string GetVersionURL(ABPathInfo pathInfo)
        {
            string url = GetFileManifestURL(pathInfo);

            return(AssetsCommon.BuildFileName(url, PathConstant.FileName.VERSION));
        }
Beispiel #8
0
        public static string GetABAssetInfoURL(ABPathInfo pathInfo)
        {
            string url = GetFileManifestURL(pathInfo);

            return(AssetsCommon.BuildFileName(url, PathConstant.FileName.AB_ASSET_INFO));
        }
Beispiel #9
0
        public static string GetFenBaoFileName(ABPathInfo pathInfo)
        {
            string assetPath = GetFileManifestPath(pathInfo);

            return(AssetsCommon.BuildFileName(assetPath, PathConstant.FileName.FEN_BAO));
        }
Beispiel #10
0
        public static string GetVersionListFileName(ePlatformType osType)
        {
            string assetPath = GetVersionListPath(osType);

            return(AssetsCommon.BuildFileName(assetPath, PathConstant.FileName.VERSION_LIST));
        }
Beispiel #11
0
        public static string GetVersionFileName(ABPathInfo pathInfo)
        {
            string assetPath = GetFileManifestPath(pathInfo);

            return(AssetsCommon.BuildFileName(assetPath, PathConstant.FileName.VERSION));
        }
Beispiel #12
0
        public static string GetABAssetInfoFileName(ABPathInfo pathInfo)
        {
            string assetPath = GetFileManifestPath(pathInfo);

            return(AssetsCommon.BuildFileName(assetPath, PathConstant.FileName.AB_ASSET_INFO));
        }