public void saveDB() { foreach (GamePageData save in this.saves) { SerializeUtilities <GamePageData> .Serialize(save, this.dirPath + "\\" + save.boardPlacementData.GetStartPageData().getPlayerName() + ".ser"); } }
public void saveDB() { /* Serialize each GamePageData in this.saves */ foreach (GamePageData save in this.saves) { /* Saves the GamePageData at save's player's named file */ SerializeUtilities <GamePageData> .Serialize(save, this.dirPath + "\\" + save.boardPlacementData.GetStartPageData().getPlayerName() + ".ser"); } }
public void saveDB() { SerializeUtilities <List <ScoreRecord> > .Serialize(this.records, this.fileName); }