BaseSkill ConvertMsgSkillToSkill(Skill sk) { BaseSkill skill = BaseSkill.Create(sk.Id); skill.id = sk.Id; skill.name = sk.Name; skill.level = sk.Level; skill.type = (SkillType)sk.Type; skill.isOpen = sk.IsOpen; return(skill); }