/* This function is called when the saveLabel is selected. * A new SaveData object is created using the current game, and saved externally using the PkmnUtils.BinarySave<T>() function. * The save file is named after the date and time when it was saved. */ void saveLabel_Selected(object sender, EventArgs e) { SaveData saveData = new SaveData(WorldScreen.World.CurrentLevelIndex, WorldScreen.Player.TilePosition, (Pokemon[])WorldScreen.Player.Team.Clone(), WorldScreen.Player.Gender); PkmnUtils.BinarySave(saveData, DateTime.Now.ToString("dd-MM-yyyy_hh-mm-ss")); }