Example #1
0
        public static void RunExtractions()
        {
            Console.Out.WriteLine("#---- Starting Extraction Operation ----#");

            string exportTypeString;

            if (ExportType == ExportType.TextList)
            {
                exportTypeString = "Text List";
            }
            else if (ExportType == ExportType.Json)
            {
                exportTypeString = "JSON";
            }
            else
            {
                exportTypeString = "Text List and JSON";
            }

            var localizationData = new LocalizationData();

            switch (ExportMode)
            {
            case ExportMode.Item_Extraction:
                ExtractItems(localizationData, exportTypeString);
                break;

            case ExportMode.Location_Extraction:
                ExtractLocations(exportTypeString);
                break;

            case ExportMode.Dump_All_XML:
                DumpAllXml();
                break;

            case ExportMode.Extract_Items_Locations:
                ExtractItems(localizationData, exportTypeString);
                ExtractLocations(exportTypeString);
                break;

            case ExportMode.Everything:
                ExtractItems(localizationData, exportTypeString);
                ExtractLocations(exportTypeString);
                DumpAllXml();
                break;
            }
            Console.Out.WriteLine("#---- Finished Extraction Operation ----#");
        }
Example #2
0
 public static void ExtractItems(LocalizationData localizationData, string exportTypeString)
 {
     Console.Out.WriteLine("--- Starting Extraction of Items as " + exportTypeString + " ---");
     new ItemExtractor().Extract(localizationData);
     Console.Out.WriteLine("--- Extraction Complete! ---");
 }