Exemple #1
0
        /// <summary>
        /// Create a serializable character sheet for this character
        /// </summary>
        /// <returns></returns>
        public override SerializableSettingsCharacter Export()
        {
            var serial = new SerializableCCPCharacter();

            Export(serial);

            // Last API updates
            foreach (var monitor in m_monitors)
            {
                var update = new SerializableAPIUpdate {
                    Method = monitor.Method, Time = monitor.LastUpdate
                };
                serial.LastUpdates.Add(update);
            }

            // Skill queue
            serial.MarketOrders = m_marketOrders.Export();
            serial.SkillQueue   = m_queue.Export();
            return(serial);
        }
        /// <summary>
        /// Create a serializable character sheet for this character
        /// </summary>
        /// <returns></returns>
        public override SerializableSettingsCharacter Export()
        {
            var serial = new SerializableCCPCharacter();

            Export(serial);

            // Skill queue
            serial.SkillQueue = m_queue.Export();

            // Market orders
            serial.MarketOrders = m_marketOrders.Export();

            // Industry jobs
            serial.IndustryJobs = m_industryJobs.Export();

            // Research points
            serial.ResearchPoints = m_researchPoints.Export();

            // Eve mail messages IDs
            serial.EveMailMessagesIDs = m_eveMailMessages.Export();

            // Eve notifications IDs
            serial.EveNotificationsIDs = m_eveNotifications.Export();

            // Last API updates
            foreach (var monitor in m_monitors)
            {
                var update = new SerializableAPIUpdate
                {
                    Method = monitor.Method,
                    Time   = monitor.LastUpdate
                };

                serial.LastUpdates.Add(update);
            }

            return(serial);
        }