SHARE
TWEET

Untitled

a guest Jun 16th, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static uint GAMEUID(int game_id, int area, int tempo, int bet_id)
  2. {
  3.         return (uint)((game_id << 16) | PLAYAREA(area, tempo, bet_id));
  4. }
  5.  
  6.  public static int PLAYAREA(int area, int tempo, int bet)
  7.     {
  8.         return ((((area) << 12) & GameConfig.PLAYAREA_AREA_MASK) |
  9.                     (((tempo) << 8) & GameConfig.PLAYAREA_TEMPO_MASK) |
  10.                     ((bet) & GameConfig.PLAYAREA_BET_MASK));
  11.     }
  12.  
  13. //playarea
  14.     public const int PLAYAREA_TEMPO_MASK = 0x0F00;  // 遊戲節奏的位元遮罩
  15.     public const int PLAYAREA_BET_MASK   = 0x00FF;  // 下注金額的位元遮罩
  16.     public const int PLAYAREA_AREA_MASK  = 0xF000;  // 遊戲分區的位元遮罩
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top