Esempio n. 1
0
        public void BakeHashes()
        {
            if (contents == null)
            {
                return;
            }

            if (VERBOSE)
            {
                Debug.Log("Baking hashes...");
            }

            if (fileToHash == null)
            {
                fileToHash = new Dictionary <string, string>(contents.Count);
            }

            for (int i = 0; i < contents.Count; i++)
            {
                MappingPair m = contents[i];
                fileToHash.Add(m.file.ToLower(), m.hash);

                if (VERBOSE)
                {
                    Debug.Log($"found file = {m.file} ... hash = {m.hash}\nfull url = {baseUrl}\\{m.hash}");
                }
            }
        }
Esempio n. 2
0
 public AssetPath(string basePath, string hash, string file)
 {
     this.basePath = basePath;
     this.pair     = new MappingPair {
         hash = hash, file = file
     };
 }
Esempio n. 3
0
 public AssetPath(string basePath, MappingPair pair)
 {
     this.basePath = basePath;
     this.pair     = pair;
 }