コード例 #1
0
 /// <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);
 }
コード例 #2
0
        /// <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;
            }
        }
コード例 #3
0
 /// <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)
 {
 }