/// <summary> /// Deserialization constructor. /// </summary> /// <param name="group"></param> /// <param name="src"></param> internal StaticCertificateClass(StaticCertificateGroup group, SerializableCertificateClass src) { ID = src.ID; Name = src.Name; Description = src.Description; Group = group; Certificate = new StaticCertificate(this, src.Certificate); }
/// <summary> /// Constructor /// </summary> /// <param name="character"></param> /// <param name="src"></param> internal CertificateGroup(Character character, StaticCertificateGroup src) { StaticData = src; foreach (CertificateClass certClass in src .Select(srcClass => new CertificateClass(character, srcClass, this))) { Items[certClass.Name] = certClass; } }
/// <summary> /// Constructor, used to build an non-character CertificateGroup, only used by CertificateClassCollection. /// </summary> /// <param name="src">The source.</param> internal CertificateGroup(StaticCertificateGroup src) : this(null, src) { }