Example #1
0
    List <URLFile> GetIncrementABUrls()
    {
        AssetBundleIndex incrementList = GetIncrementResourceList(mIndexSD, mIndexRemote);
        List <URLFile>   ret           = new List <URLFile>();

        for (int i = 0; i < incrementList.files.Count; ++i)
        {
            var     info    = incrementList.files[i];
            URLFile urlFile = new URLFile();
            urlFile.url  = Frame.Helper.CombineWithSlash(false, mRemoteABFloderURL, info.name);
            urlFile.size = info.size;
            ret.Add(urlFile);
        }
        return(ret);
    }
Example #2
0
    public AssetBundleIndex GetIncrementResourceList(AssetBundleIndex list0, AssetBundleIndex list1)
    {
        if (list1 == null)
        {
            return(null);
        }

        Dictionary <string, ABFile> map0 = list0 == null ? null : list0.abMap;
        Dictionary <string, ABFile> map1 = list1.abMap;

        AssetBundleIndex incremetList = new AssetBundleIndex();

        foreach (var data in map1)
        {
            ABFile info = null;

            if (map0 == null || !map0.TryGetValue(data.Key, out info) || info.hash != data.Value.hash)
            {
                incremetList.files.Add(data.Value);
            }
        }
        return(incremetList);
    }
Example #3
0
 public static void FromJsonOverwrite(string readAllText, AssetBundleIndex assetBundleIndexObject)
 {
     throw new NotImplementedException();
 }