| 123456789101112131415161718192021 |
- using System.IO;
- using GFGGame;
- using SimpleJSON;
- public static class CommonDataManager
- {
- public static cfg.Tables Tables;
- public static void Init()
- {
- Tables = new cfg.Tables(LoadByteBuf);
- ItemCfgArray.Instance.InitSyntheticSuitDic();
- }
- private static JSONNode LoadByteBuf(string file)
- {
- string dbPath = "../CSShare";
- return JSON.Parse(File.ReadAllText(dbPath + "/GFG/HotUpdate/LuBanConfig/LubanData/" + file + ".json",
- System.Text.Encoding.UTF8));
- }
- }
|