Inheritance: EntityInfo
Exemple #1
0
		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);
		}
Exemple #2
0
		public void AddNPCInfo(string name, NPCInfo info)
		{
			info.mod = this;
			info.Name = name;
			NPCLoader.infoIndexes[Name + ':' + name] = NPCLoader.infoList.Count;
			NPCLoader.infoList.Add(info);
		}