Exemplo n.º 1
0
        public static GameStateDelta Delta(GameState fromState, GameState toState)
        {
            var delta = new GameStateDelta();

            delta.Sequence = toState.Sequence;
            delta.Create(fromState, toState);
            return(delta);
        }
Exemplo n.º 2
0
 public static GameState Patch(GameState fromState, GameStateDelta delta)
 {
     return(delta.Apply(fromState));
 }