public void Create(GameState fromState, GameState toState)
 {
     Sequence     = toState.Sequence;
     FromSequence = fromState.Sequence;
     using (var stream = Bsdiff.Bsdiff.GenerateBzip2Diff(fromState.GetSerializedDataBuffer(), toState.GetSerializedDataBuffer()))
     {
         deltaBytes = stream.ToArray();
     }
 }
 public void Create(GameState fromState, GameState toState)
 {
     Sequence = toState.Sequence;
     FromSequence = fromState.Sequence;
     BinaryPatchUtility.Create(fromState.GetSerializedDataBuffer(), toState.GetSerializedDataBuffer(), deltaBytes);
 }
Esempio n. 3
0
 public void Create(GameState fromState, GameState toState)
 {
     Sequence     = toState.Sequence;
     FromSequence = fromState.Sequence;
     BinaryPatchUtility.Create(fromState.GetSerializedDataBuffer(), toState.GetSerializedDataBuffer(), deltaBytes);
 }