コード例 #1
0
        public static void Load()
        {
            try
            {
                Directory.CreateDirectory(Main.SavePath);

                jsonCCList = new JsonChrClassList();
                //disable Load for Now

                /*
                 * if (File.Exists(cPath))
                 * {
                 *  using (StreamReader reader = new StreamReader(cPath))
                 *  {
                 *
                 *      jsonSkillList = JsonConvert.DeserializeObject<JsonNodeList>(reader.ReadToEnd());
                 *  }
                 * }
                 */
                Save();
            }
            catch (SystemException e)
            {
                AnotherRpgMod.Instance.Logger.Error(e.ToString());
            }
        }
コード例 #2
0
        public static void Load()
        {
            try
            {
                Directory.CreateDirectory(Main.SavePath + Path.DirectorySeparatorChar + Dir);
                cPath      = (Main.SavePath + Path.DirectorySeparatorChar + Dir + Path.DirectorySeparatorChar + Name);
                jsonCCList = new JsonChrClassList();

                if (File.Exists(cPath))
                {
                    using (StreamReader reader = new StreamReader(cPath))
                    {
                        if (Config.gpConfig.UseCustomSkillTree)
                        {
                            jsonCCList = JsonConvert.DeserializeObject <JsonChrClassList>(reader.ReadToEnd());
                        }
                    }
                }

                Save();
            }
            catch (SystemException e)
            {
                AnotherRpgMod.Instance.Logger.Error(e.ToString());
            }
        }
コード例 #3
0
 public static void Init()
 {
     try
     {
         cPath      = (Main.SavePath + Path.DirectorySeparatorChar + Name);
         jsonCCList = new JsonChrClassList();
         Load();
     }
     catch (SystemException e)
     {
         AnotherRpgMod.Instance.Logger.Error(e.ToString());
     }
 }