예제 #1
0
        private bool TryGetData(SkillNameTag skillName, SkillSlotTag skillSlot,
                                out XElement xElement)
        {
            xElement = xmlFile
                       .Element(skillName.ToString())
                       .Element(skillSlot.ToString());

            return(xElement != null);
        }
예제 #2
0
 private void SetTemplateData(SkillNameTag skillName,
                              SkillSlotTag skillSlot, SkillComponentTag skillComponent)
 {
     nameSlotCompDict[skillName][skillSlot] = skillComponent;
     xmlFile
     .Element(skillName.ToString())
     .Element(skillSlot.ToString())
     .Value
         = skillComponent.ToString();
 }
예제 #3
0
        private void SetTemplateData(SkillNameTag skillName,
                                     SkillTypeTag skillType)
        {
            SkillSlotTag skillSlot = SkillSlotTag.SkillType;

            nameTypeDict[skillName] = skillType;
            xmlFile
            .Element(skillName.ToString())
            .Element(skillSlot.ToString())
            .Value
                = skillType.ToString();
        }