public void AddNPCInfo(string name, NPCInfo info) { info.mod = this; info.Name = name; if (!NPCLoader.infoIndexes.ContainsKey(this.Name)) { NPCLoader.infoIndexes[this.Name] = new Dictionary<string, int>(); } NPCLoader.infoIndexes[this.Name][name] = NPCLoader.infoList.Count; NPCLoader.infoList.Add(info); }
public void AddNPCInfo(string name, NPCInfo info) { info.mod = this; info.Name = name; NPCLoader.infoIndexes[Name + ':' + name] = NPCLoader.infoList.Count; NPCLoader.infoList.Add(info); }