コード例 #1
0
ファイル: Skill.cs プロジェクト: webdes27/AionScript
 public void Update(eDispell eDispell, eSkillType eType, eSkillTypeSecondary eTypeSecondary, bool bAcivated)
 {
     this._eDispell       = eDispell;
     this._eType          = eType;
     this._eTypeSecondary = eTypeSecondary;
     this._bActivated     = bAcivated;
     this._bValid         = true;
 }
コード例 #2
0
ファイル: SkillList.cs プロジェクト: webdes27/AionScript
 protected Skill _ValidateSkill(Skill hSkill)
 {
     if (!hSkill.IsValid())
     {
         XmlElement          hElement       = this._hSkillListElement[hSkill];
         eDispell            eDispell       = (eDispell)int.Parse(this._GetElement(hElement, "iDispell"));
         eSkillType          eType          = (eSkillType)int.Parse(this._GetElement(hElement, "iType"));
         eSkillTypeSecondary eTypeSecondary = (eSkillTypeSecondary)int.Parse(this._GetElement(hElement, "iTypeSecondary"));
         bool bAcivated = bool.Parse(this._GetElement(hElement, "bActivated"));
         hSkill.Update(eDispell, eType, eTypeSecondary, bAcivated);
     }
     return(hSkill);
 }