Example #1
0
    public override bool Load(SecurityElement element)
    {
        if (element.Tag != "Items")
        {
            return(false);
        }

        if (element.Children != null)
        {
            foreach (SecurityElement childrenElement in element.Children)
            {
                GirlSkillObject girlskillObject = GirlSkillObject.Load(childrenElement);

                if (!_girlSkillObjectDict.ContainsKey(girlskillObject.SkillID))
                {
                    _girlSkillObjectDict[girlskillObject.SkillID] = girlskillObject;
                }
            }
        }

        return(true);
    }
Example #2
0
        public static GirlSkillObject Load(SecurityElement element)
        {
            GirlSkillObject girlskillgobject = new GirlSkillObject();

            girlskillgobject.SkillID            = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Skill_ID"), ""), -1);
            girlskillgobject.GroupID            = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Group_ID"), ""), -1);
            girlskillgobject.Skill_Name         = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Skill_Name"), ""), -1);
            girlskillgobject.Skill_Icon         = StrParser.ParseStr(element.Attribute("Skill_Icon"), "");
            girlskillgobject.Skill_Type         = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Skill_Type"), ""), -1);
            girlskillgobject.Skill_Level        = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Skill_Level"), ""), -1);
            girlskillgobject.Skill_Time         = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Skill_Time"), ""), -1);
            girlskillgobject.Reward_Type        = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Reward_Type"), ""), -1);
            girlskillgobject.Reward_Is_Percent  = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Reward_Is_Percent"), ""), -1);
            girlskillgobject.Reward_Count       = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Reward_Count"), ""), -1);
            girlskillgobject.Reward_Describe    = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Reward_Describe"), ""), -1);
            girlskillgobject.Condition_Type     = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Condition_Type"), ""), -1);
            girlskillgobject.Condition_Item     = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Condition_Item"), ""), -1);
            girlskillgobject.Condition_Count    = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Condition_Count"), ""), -1);
            girlskillgobject.Condition_Describe = StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("Condition_Describe"), ""), -1);
//			girlcgobject.CG_ID= StrParser.ParseDecInt(StrParser.ParseStr(element.Attribute("CG_ID"),""),-1);
//			girlcgobject.CGIcon = StrParser.ParseStr(element.Attribute ("Icon"), "");
            return(girlskillgobject);
        }