Beispiel #1
0
 private void Reload(CommandArgs args)
 {
     if (File.Exists(CEConfigPath))
     {
         CEConfig = CEConfigFile.Read(CEConfigPath);
         // Add all the missing config properties in the json file
     }
     else
     {
         CEConfig.Write(CEConfigPath);
         if (File.Exists(CEConfigPath))
         {
             CEConfig = CEConfigFile.Read(CEConfigPath);
             // Add all the missing config properties in the json file
         }
     }
 }
Beispiel #2
0
 private static void SetupConfig()
 {
     try
     {
         if (File.Exists(CEConfigPath))
         {
             CEConfig = CEConfigFile.Read(CEConfigPath);
             // Add all the missing config properties in the json file
         }
         CEConfig.Write(CEConfigPath);
     }
     catch (Exception ex)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Error in (EPR) config file");
         Console.ForegroundColor = ConsoleColor.Gray;
         Log.Error("(EPR) Config Exception");
         Log.Error(ex.ToString());
     }
 }
Beispiel #3
0
 public C3RewardSystem(Main game)
     : base(game)
 {
     Order    = -2;
     CEConfig = new CEConfigFile();
 }
Beispiel #4
0
 public C3RewardSystem(Main game)
     : base(game)
 {
     Order = -2;
     CEConfig = new CEConfigFile();
 }