private void copyAll(object sender, EventArgs args)
 {
     copiedEntry = offsetListBox.SelectedItem as InflictStatus;
 }
Beispiel #2
0
 public AllInflictStatuses( IList<byte> bytes )
 {
     byte[] defaultBytes = FFTPatch.Context == Context.US_PSP ? PSPResources.InflictStatusesBin : PSXResources.InflictStatusesBin;
     InflictStatuses = new InflictStatus[0x80];
     for( int i = 0; i < 0x80; i++ )
     {
         InflictStatuses[i] = new InflictStatus( (byte)i, bytes.Sub( i * 6, (i + 1) * 6 - 1 ),
             new InflictStatus( (byte)i, defaultBytes.Sub( i * 6, (i + 1) * 6 - 1 ) ) );
     }
 }
Beispiel #3
0
 public void CopyTo( InflictStatus destination )
 {
     Copy( this, destination );
 }
Beispiel #4
0
 public static void Copy( InflictStatus source, InflictStatus destination )
 {
     source.Statuses.CopyTo( destination.Statuses );
     destination.AllOrNothing = source.AllOrNothing;
     destination.Random = source.Random;
     destination.Separate = source.Separate;
     destination.Cancel = source.Cancel;
     destination.Blank1 = source.Blank1;
     destination.Blank2 = source.Blank2;
     destination.Blank3 = source.Blank3;
     destination.Blank4 = source.Blank4;
 }
Beispiel #5
0
 public InflictStatus( byte value, IList<byte> bytes, InflictStatus defaults )
 {
     Default = defaults;
     Value = value;
     PatcherLib.Utilities.Utilities.CopyByteToBooleans( bytes[0], ref AllOrNothing, ref Random, ref Separate, ref Cancel, ref Blank1, ref Blank2, ref Blank3, ref Blank4 );
     Statuses = new Statuses( bytes.Sub( 1, 5 ), defaults == null ? null : defaults.Statuses );
 }
Beispiel #6
0
 public void CopyTo(InflictStatus destination)
 {
     Copy(this, destination);
 }