示例#1
0
文件: Core.cs 项目: wJsJwr/kichiku
 public void run(bool textonly = false)
 {
     if (!textonly)
     {
         if (Directory.Exists("graph"))
         {
             this.transformGraph();
         }
         else
         {
             Log.Err("graph directory is not exist");
         }
         Log.Info("图像转换完成");
     }
     if (File.Exists("text.csv"))
     {
         this.td = new TextDict();
         foreach (string str in File.ReadAllLines("text.csv"))
         {
             try {
                 td.add(str);
             } catch (Exception ex) {
                 Log.Err(string.Format("{0}, text={1}", ex.Message, str));
             }
         }
         td.translate();
         saveStringList();
         Log.Info("文本转换完成");
     }
     else
     {
         Log.Err("text file is not exist");
     }
     if (!textonly)
     {
         translateCSV("poke");
         translateCSV("item");
         translateSkill();
     }
 }
示例#2
0
文件: Core.cs 项目: wJsJwr/kichiku
 public Core()
 {
     this.graphics = new Dictionary <string, string>();
     this.td       = new TextDict();
 }