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."); }
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); }