상속: EntityInfo
예제 #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);
		}
예제 #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);
		}