protected override ModableObjectHashDictionary <CommandsCollection> loadFromFolder(string path) { var result = new ModableObjectHashDictionary <CommandsCollection>(); ModableObjectHashDictionary <ProceduresFile> dict = loadFromFolder <ProceduresFile>(path); foreach (KeyValuePair <string, ProceduresFile> kv in dict) { foreach (KeyValuePair <string, CommandsCollection> kv2 in kv.Value) { var item = kv2.Value; result.Add(kv2.Key, item); } } return(result); }
protected override ModableObjectHashDictionary <DialogueTopic> loadFromFolder(string path) { var result = new ModableObjectHashDictionary <DialogueTopic>(); ModableObjectHashDictionary <DialogueTopicsFile> dict = loadFromFolder <DialogueTopicsFile>(path); foreach (DialogueTopicsFile dialogueTopicsFile in dict.Values) { foreach (KeyValuePair <string, DialogueTopic> kv2 in dialogueTopicsFile.topics) { var topic = kv2.Value; topic.ID = kv2.Key; result.Add(kv2.Key, topic); } } return(result); }
protected override ModableObjectHashDictionary <Effect> loadFromFolder(string path) { var result = new ModableObjectHashDictionary <Effect>(); ModableObjectHashDictionary <EffectsFile> dict = loadFromFolder <EffectsFile>(path); foreach (KeyValuePair <string, EffectsFile> kv in dict) { foreach (KeyValuePair <string, Effect> kv2 in kv.Value.Effects) { var effect = kv2.Value; effect.ID = kv2.Key; result.Add(kv2.Key, effect); } } return(result); }
protected override ModableObjectHashDictionary <Item> loadFromFolder(string path) { var result = new ModableObjectHashDictionary <Item>(); ModableObjectHashDictionary <ItemsFile> dict = loadFromFolder <ItemsFile>(path); foreach (KeyValuePair <string, ItemsFile> kv in dict) { foreach (KeyValuePair <string, Item> kv2 in kv.Value.Items) { var item = kv2.Value; item.id = kv2.Key; result.Add(kv2.Key, item); } } return(result); }
protected override ModableObjectHashDictionary <Interrupt> loadFromFolder(string path) { var result = new ModableObjectHashDictionary <Interrupt>(); ModableObjectHashDictionary <InterruptsFile> dict = loadFromFolder <InterruptsFile>(path); foreach (InterruptsFile interruptsFile in dict.Values) { foreach (KeyValuePair <string, Interrupt> kv2 in interruptsFile.interrupts) { var interrupt = kv2.Value; interrupt.id = kv2.Key; result.Add(kv2.Key, interrupt); } } return(result); }