public static void Load(string path) { currentGame = new ObjectSerializer().Deserialize <Lottery>(XDocument.Load(path)); Log.Write($"Existing lottery game loaded. Jackpot {currentGame.JackpotAmount}"); }
public static void Restart(float jackpot) { currentGame = Lottery.New(GameParameters.StandardGame, jackpot); Log.Write($"New lottery game started. Jackpot {currentGame.JackpotAmount}"); }