Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  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;  // 遊戲分區的位元遮罩
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement