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}"); } } }
public AssetPath(string basePath, string hash, string file) { this.basePath = basePath; this.pair = new MappingPair { hash = hash, file = file }; }
public AssetPath(string basePath, MappingPair pair) { this.basePath = basePath; this.pair = pair; }