public static SkillName MapPrimarySkillToSkillname(PrimarySkill skill) { switch (skill) { case PrimarySkill.agility: return(SkillName.agility); case PrimarySkill.intelligence: return(SkillName.intelligence); case PrimarySkill.magicProwess: return(SkillName.magicProwess); case PrimarySkill.strength: return(SkillName.strength); } return(0); }
public static string EnumToString(PrimarySkill e) { return(EnumToString(Util.MapPrimarySkillToSkillname(e))); }