Bond697

Get Moves

Sep 12th, 2011
430
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. //gimme 4 moves
  2.  public ushort[] getMoves(byte[] pgfbytes)
  3.         {
  4.             ushort[] moves = { 0, 0, 0, 0 };
  5.             int m = 0;
  6.  
  7.             for (int i = 0x12; i <= 0x18; i += 2)
  8.             {
  9.                 moves[m] = (ushort)((pgfbytes[i + 1] << 8) + pgfbytes[i]);
  10.                 m++;
  11.             }
  12.  
  13.             return moves;
  14.         }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment