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); } }
public void AddSkillRegistrationPoint(NWPlayer oPC, int skillID, int weaponLevel, int skillRank) { PlayerSkillRegistration reg = GetRegistration(oPC); reg.AddSkillPointRegistration(skillID, weaponLevel, skillRank); }