Ejemplo n.º 1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="identity">The identitiy for this character</param>
        /// <param name="guid">The unique identifier.</param>
        /// <exception cref="System.ArgumentNullException">identity</exception>
        protected Character(CharacterIdentity identity, Guid guid)
        {
            identity.ThrowIfNull(nameof(identity));

            CharacterID = identity.CharacterID;
            m_name = identity.CharacterName;
            CorporationID = identity.CorporationID;
            CorporationName = identity.CorporationName;

            Identity = identity;
            Guid = guid;

            Corporation = new Corporation(this);

            SkillGroups = new SkillGroupCollection(this);
            Skills = new SkillCollection(this);

            EmploymentHistory = new EmploymentRecordCollection(this);
            ImplantSets = new ImplantSetCollection(this);
            Plans = new PlanCollection(this);
            CertificateCategories = new CertificateCategoryCollection(this);
            CertificateClasses = new CertificateClassCollection(this);
            Certificates = new CertificateCollection(this);
            MasteryShips = new MasteryShipCollection(this);

            for (int i = 0; i < m_attributes.Length; i++)
            {
                m_attributes[i] = new CharacterAttribute(this, (EveAttribute)i);
            }

            UISettings = new CharacterUISettings();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Clones this serialization object.
        /// </summary>
        /// <returns></returns>
        internal CharacterUISettings Clone()
        {
            var clone = new CharacterUISettings();

            clone.CollapsedGroups.AddRange(this.CollapsedGroups);
            clone.SelectedPage  = this.SelectedPage;
            clone.OrdersGroupBy = this.OrdersGroupBy;
            return(clone);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="identity">The identitiy for this character</param>
        /// <param name="guid"></param>
        protected Character(CharacterIdentity identity, Guid guid)
        {
            m_characterID = identity.CharacterID;
            m_name = identity.Name;
            m_identity = identity;
            m_guid = guid;

            m_skillGroups = new SkillGroupCollection(this);
            m_skills = new SkillCollection(this);

            m_certificateCategories = new CertificateCategoryCollection(this);
            m_certificateClasses = new CertificateClassCollection(this);
            m_certificates = new CertificateCollection(this);
            m_implants = new ImplantSetCollection(this);
            m_plans = new PlanCollection(this);

            for (int i = 0; i < m_attributes.Length; i++)
            {
                m_attributes[i] = new CharacterAttribute(this, (EveAttribute)i);
            }

            m_uiSettings = new CharacterUISettings();
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Deserialization constructor.
 /// </summary>
 public MonitoredCharacterSettings()
 {
     Settings = new CharacterUISettings();
 }
 /// <summary>
 /// Creation for new settings for this character
 /// </summary>
 public MonitoredCharacterSettings(Character character)
 {
     CharacterGuid = character.Guid;
     Settings = new CharacterUISettings();
 }
 /// <summary>
 /// Deserialization constructor
 /// </summary>
 public MonitoredCharacterSettings()
 {
     Settings = new CharacterUISettings();
 }
 /// <summary>
 /// Creation for new settings for this character
 /// </summary>
 public MonitoredCharacterSettings(Character character)
 {
     CharacterGuid = character.Guid;
     Settings      = new CharacterUISettings();
 }