Example #1
0
        public MementoLib.IMemento Save()
        {
            var gamestate = new GameMementoState();

            foreach (var player in players)
            {
                gamestate.Players.Add(player.Clone() as Player);
            }

            return(new GameMemento(gamestate));
        }
Example #2
0
 public GameMemento(GameMementoState state)
 {
     MementoState = state;
 }