Exemplo n.º 1
0
 private static void SetupConfig()
 {
     try
     {
         if (File.Exists(RankConfigPath))
         {
             RankConfig = RankConfigFile.Read(RankConfigPath);
             // Add all the missing config properties in the json file
         }
         RankConfig.Write(RankConfigPath);
     }
     catch (Exception ex)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Error in config file");
         Console.ForegroundColor = ConsoleColor.Gray;
         Log.Error("Config Exception");
         Log.Error(ex.ToString());
     }
 }
Exemplo n.º 2
0
 public RankSystem(Main game)
     : base(game)
 {
     RankConfig = new RankConfigFile();
 }
Exemplo n.º 3
0
 private static void SetupConfig()
 {
     try
     {
         if (File.Exists(RankConfigPath))
         {
             RankConfig = RankConfigFile.Read(RankConfigPath);
             // Add all the missing config properties in the json file
         }
         RankConfig.Write(RankConfigPath);
     }
     catch (Exception ex)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Error in config file");
         Console.ForegroundColor = ConsoleColor.Gray;
         Log.Error("Config Exception");
         Log.Error(ex.ToString());
     }
 }
Exemplo n.º 4
0
 public RankSystem(Main game)
     : base(game)
 {
     RankConfig = new RankConfigFile();
 }