/// <summary> /// Constructor. /// </summary> /// <param name="character">The character</param> /// <param name="src">The static certificate class</param> /// <param name="category">The owning category</param> internal CertificateClass(Character character, StaticCertificateClass src, CertificateGroup category) { Character = character; Category = category; StaticData = src; Certificate = new Certificate(character, src.Certificate, this); }
/// <summary> /// Initializes a new instance of the <see cref="CertificateLevel"/> class. /// </summary> /// <param name="skill">The skill.</param> /// <param name="cert">The cert.</param> /// <param name="character">The character.</param> public CertificateLevel(KeyValuePair<CertificateGrade, List<StaticSkillLevel>> skill, Certificate cert, Character character) { m_character = character; Level = skill.Key; Certificate = cert; Status = CertificateStatus.Untrained; PrerequisiteSkills = skill.Value.ToCharacter(character); }
/// <summary> /// Initializes a new instance of the <see cref="CertificateLevel"/> class. /// </summary> /// <param name="skill">The skill.</param> /// <param name="cert">The cert.</param> /// <param name="character">The character.</param> public CertificateLevel(KeyValuePair <CertificateGrade, List <StaticSkillLevel> > skill, Certificate cert, Character character) { m_character = character; Level = skill.Key; Certificate = cert; Status = CertificateStatus.Untrained; PrerequisiteSkills = skill.Value.ToCharacter(character); }