public MementoLib.IMemento Save() { var gamestate = new GameMementoState(); foreach (var player in players) { gamestate.Players.Add(player.Clone() as Player); } return(new GameMemento(gamestate)); }
public GameMemento(GameMementoState state) { MementoState = state; }