Exemple #1
0
 public void Log(GameException e)
 {
     System.IO.File.WriteAllText(fileName, System.IO.File.ReadAllText(fileName) +
        "\n[" + DateTime.Now.ToString() + "] " + e.why);
     if (e.level >= GameException.LevelCatastrophic)
         g.Exit();
 }
Exemple #2
0
 public void Log(GameException e)
 {
     System.IO.File.WriteAllText(fileName, System.IO.File.ReadAllText(fileName) +
                                 "\n[" + DateTime.Now.ToString() + "] " + e.why);
     if (e.level >= GameException.LevelCatastrophic)
     {
         g.Exit();
     }
 }