示例#1
0
        NPCTypeInfo GetTypeInfo()
        {
            NPCTypeInfo typeInfo = new NPCTypeInfo(Element.none, Element.none, Element.none);

            if (DictionaryHelper.NPC(GetNPC()).ContainsKey(GetNPC().type))
            {
                typeInfo = DictionaryHelper.NPC(GetNPC())[GetNPC().type];
            }
            return(typeInfo);
        }
 public ModifyTypeParameters(NPCTypeInfo typeInfo, NPC npc)
 {
     this.defaultTypes = new ThreeType(typeInfo.Primary, typeInfo.Secondary, typeInfo.Offensive);
     this.npc          = npc;
 }
示例#3
0
        public ThreeType GetThreeType()
        {
            NPCTypeInfo info = GetTypeInfo();

            return(new ThreeType(info.Primary, info.Secondary, info.Offensive));
        }