示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="character"></param>
        public static string ExportAsEVEMonXML(Character character)
        {
            var serial = character.Export();
            var doc    = Util.SerializeToXmlDocument(serial.GetType(), serial);

            return(Util.GetXMLStringRepresentation(doc));
        }
示例#2
0
        /// <summary>
        /// Creates a XML format file for character exportation.
        /// </summary>
        /// <param name="character"></param>
        /// <param name="plan"></param>
        public static string ExportAsEVEMonXML(Character character, Plan plan)
        {
            var serial = character.Export();

            if (plan != null)
            {
                serial.Skills = character.Skills.Where(x => x.IsKnown || (plan != null && plan.IsPlanned(x))).Select(x => GetMergedSkill(plan, x)).ToList();
            }

            var doc = Util.SerializeToXmlDocument(serial.GetType(), serial);

            return(Util.GetXMLStringRepresentation(doc));
        }
示例#3
0
        /// <summary>
        /// Creates a XML format file for character exportation.
        /// </summary>
        /// <param name="character"></param>
        /// <param name="plan"></param>
        public static string ExportAsEVEMonXML(Character character, Plan plan)
        {
            var serial = character.Export();

            if (plan != null)
                serial.Skills = character.Skills.Where(x => x.IsKnown || (plan != null && plan.IsPlanned(x))).Select(x => GetMergedSkill(plan, x)).ToList();

            var doc = Util.SerializeToXmlDocument(serial.GetType(), serial);
            return Util.GetXMLStringRepresentation(doc);
        }