/// <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(); }