Exemplo n.º 1
0
        public World(string xmlFile, string historyFile, string sitesAndPopulationsFile, string mapFile)
        {
            ParsingErrors = new ParsingErrors();
                Log = new StringBuilder();
                Log.AppendLine("Start: " + DateTime.Now.ToLongTimeString());

                CreateUnknowns();

                XMLParser xml = new XMLParser(this, xmlFile);
                xml.Parse();
                HistoryParser history = new HistoryParser(this, historyFile);
                Log.Append(history.Parse());
                SitesAndPopulationsParser sitesAndPopulations = new SitesAndPopulationsParser(this, sitesAndPopulationsFile);
                sitesAndPopulations.Parse();
                ProcessHFtoEntityLinks();

                HistoricalFigure.Filters = new List<string>();
                Site.Filters = new List<string>();
                WorldRegion.Filters = new List<string>();
                UndergroundRegion.Filters = new List<string>();
                Entity.Filters = new List<string>();
                War.Filters = new List<string>();
                Battle.Filters = new List<string>();
                SiteConquered.Filters = new List<string>();
                Era.Filters = new List<string>();
                BeastAttack.Filters = new List<string>();
                Artifact.Filters = new List<string>();

                GenerateCivIdenticons();

                GenerateMaps(mapFile);

                Log.AppendLine(ParsingErrors.Print());
                Log.AppendLine("Finish: " + DateTime.Now.ToLongTimeString());
        }
Exemplo n.º 2
0
        public World(string xmlFile, string historyFile, string sitesAndPopulationsFile, string mapFile)
        {
            ParsingErrors = new ParsingErrors();
                Log = new StringBuilder();
                Log.AppendLine("Start: " + DateTime.Now.ToLongTimeString());

                CreateUnknowns();

                XMLParser xml = new XMLParser(this, xmlFile);
                xml.Parse();
                HistoryParser history = new HistoryParser(this, historyFile);
                Log.Append(history.Parse());
                SitesAndPopulationsParser sitesAndPopulations = new SitesAndPopulationsParser(this, sitesAndPopulationsFile);
                sitesAndPopulations.Parse();

                HistoricalFigure.Filters = new List<string>();
                Site.Filters = new List<string>();
                WorldRegion.Filters = new List<string>();
                UndergroundRegion.Filters = new List<string>();
                Entity.Filters = new List<string>();
                War.Filters = new List<string>();
                Battle.Filters = new List<string>();
                SiteConquered.Filters = new List<string>();
                Era.Filters = new List<string>();
                BeastAttack.Filters = new List<string>();
                Artifact.Filters = new List<string>();

                GenerateCivIdenticons();

                GenerateMaps(mapFile);

                //DeathCauses = Events.OfType<LegendsViewer.HFDied>().Select(death => death.Cause).GroupBy(death => death).Select(death => death.Key).OrderBy(death => death.GetDescription()).ToList();
                Log.AppendLine(ParsingErrors.Print());
                Log.AppendLine("Finish: " + DateTime.Now.ToLongTimeString());
        }
Exemplo n.º 3
0
        private List <Property> EntityEntityLinks      = new List <Property>(); // legends_plus.xml

        public World(string xmlFile, string historyFile, string sitesAndPopulationsFile, string mapFile)
        {
            MainRaces.Clear();
            ParsingErrors = new ParsingErrors();
            Log           = new StringBuilder();
            Log.AppendLine("Start: " + DateTime.Now.ToLongTimeString());
            Log.AppendLine();

            CreateUnknowns();

            XMLParser xml = new XMLParser(this, xmlFile);

            xml.Parse();
            HistoryParser history = new HistoryParser(this, historyFile);

            Log.Append(history.Parse());
            SitesAndPopulationsParser sitesAndPopulations = new SitesAndPopulationsParser(this, sitesAndPopulationsFile);

            sitesAndPopulations.Parse();
            ProcessHFtoEntityLinks();

            HistoricalFigure.Filters  = new List <string>();
            Site.Filters              = new List <string>();
            WorldRegion.Filters       = new List <string>();
            UndergroundRegion.Filters = new List <string>();
            Entity.Filters            = new List <string>();
            War.Filters           = new List <string>();
            Battle.Filters        = new List <string>();
            SiteConquered.Filters = new List <string>();
            Era.Filters           = new List <string>();
            BeastAttack.Filters   = new List <string>();
            Artifact.Filters      = new List <string>();

            GenerateCivIdenticons();

            GenerateMaps(mapFile);

            Log.AppendLine(ParsingErrors.Print());
            Log.AppendLine("Finish: " + DateTime.Now.ToLongTimeString());
        }