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; }
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); }