Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="asc">The command being modified.</param>
 /// <param name="offset">The offset of the data.</param>
 /// <param name="internalOffset">The internal offset of the command.</param>
 /// <param name="data">The binary data.</param>
 public AnimationEdit(Animations.OwnerForm form, Animations.Command asc, int offset, byte[] data)
 {
     this.form   = form;
     this.asc    = asc;
     this.offset = offset;
     this.data   = data;
     Execute(true);
 }
Example #2
0
 public void Execute(bool push)
 {
     for (int i = 0; i < data.Length; i++)
     {
         byte temp = Model.ROM[offset + i];
         Model.ROM[offset + i] = data[i];
         data[i] = temp;
     }
     if (!push)
     {
         var temp = this.asc;
         this.asc          = this.form.Command;
         this.form.Command = temp;
     }
 }