Exemplo n.º 1
0
        public static Attribute Convert(Shared.Ability ability)
        {
            Attribute a = new Attribute();

            a.Ranks   = ability.Base;
            a.XpSpent = ability.ExperienceSpent;
            return(a);
        }
Exemplo n.º 2
0
        public static Vital Convert(Shared.Ability ability)
        {
            Vital v = new Vital();

            v.Ranks       = ability.Ranks;
            v.Current     = ability.Base + ability.Ranks;
            v.XpSpent     = ability.ExperienceSpent;
            v.LevelFromCp = 0;
            return(v);
        }
Exemplo n.º 3
0
        public Shared.Ability Convert(Enums.AbilityId ability)
        {
            var a = new Shared.Ability();

            a.AbilityId       = (int)ability;
            a.Base            = Ranks;
            a.Ranks           = 0;
            a.ExperienceSpent = XpSpent;

            return(a);
        }