Пример #1
0
    public static Gsconfig DecodeCps(string path)
    {
        string   file   = File.ReadAllText(path, System.Text.Encoding.UTF8);
        Gsconfig config = JsonConvert.DeserializeObject <Gsconfig>(file);

        return(config);
    }
Пример #2
0
 public void Init(string filePath)
 {
     ConfData = JsonUtils.DecodeCps(filePath);
     Logger.SetLevel(ConfData.LogLevel);
     if (ConfData.RegConf.Enable)
     {
         var reg = new Register(ConfData.RegConf);
         reg.Run();
     }
     roomFrames = new Dictionary <UInt64, Dictionary <UInt32, FrameData> >();
 }
Пример #3
0
 public void Init(string filePath)
 {
     ConfData = JsonUtils.DecodeCps(filePath);
     Logger.SetLevel(ConfData.LogLevel);
 }