示例#1
0
 private PlayerSkillRegistration GetRegistration(NWPlayer oPC)
 {
     if (Registrations.ContainsKey(oPC.GlobalID))
     {
         return(Registrations[oPC.GlobalID]);
     }
     else
     {
         PlayerSkillRegistration reg = new PlayerSkillRegistration(oPC);
         Registrations[oPC.GlobalID] = reg;
         return(reg);
     }
 }
示例#2
0
        public void AddSkillRegistrationPoint(NWPlayer oPC, int skillID, int weaponLevel, int skillRank)
        {
            PlayerSkillRegistration reg = GetRegistration(oPC);

            reg.AddSkillPointRegistration(skillID, weaponLevel, skillRank);
        }