public IXExplorer(string name, ResourceStruct.ResourceType resourceType, ChitinKeyDictionary ckeyDictionary) { this.name = name + " (" + ckeyDictionary.Count.ToString() + ")"; this.resourceType = resourceType; this.ckeyDictionary = ckeyDictionary; }
public void Add(string key, ChitinKey chitinKey, ResourceStruct.ResourceType resourceType) { ChitinKeyDictionary ck = (ChitinKeyDictionary)Dictionary[resourceType]; // Build the tree node here ck.Add(key, chitinKey); }
private void Build(string name, ResourceStruct.ResourceType resourceType, ChitinKeyDictionary ckeyDictionary) { IXExplorer explorer = new IXExplorer(name, resourceType, ckeyDictionary); Dictionary.Add(resourceType, explorer); }
private void ParseOverrideDirectory(string overrideDirectory) { DirectoryInfo dir = new DirectoryInfo(overrideDirectory); foreach (KeyValuePair <string, ResourceStruct.ResourceType> kvp in ResourceStruct.FileExtensions) { ChitinKeyDictionary ckdict = ckeyDictionary[kvp.Value]; FileInfo[] files = dir.GetFiles("*." + kvp.Key); foreach (FileInfo file in files) { string s = file.Name.Split('.')[0]; ChitinKey ckey = CreateChitinKey(s, kvp.Value); ckdict.AddCheckContain(ckey.name, ckey); } } }