Beispiel #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();
 }
Beispiel #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();
     }
 }