示例#1
0
 private void loadGame(string name)
 {
     FileStream load = new FileStream("Data\\Save\\" + name, FileMode.Open);
     BinaryFormatter formatter = new BinaryFormatter();
     GC = (GameContent)formatter.Deserialize(load);
     load.Close();
     topTextArea.Write("Game loaded.");
 }
示例#2
0
 public void newGame(Race dude, string name, SocialStatus status, PlayerClass player, int[] stats, int[] resists, int[] baseRes, int[,] wp)
 {
     GC = new GameContent(dude, name, status, player, stats, resists, baseRes, wp);
 }