Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static uint GAMEUID(int game_id, int area, int tempo, int bet_id)
- {
- return (uint)((game_id << 16) | PLAYAREA(area, tempo, bet_id));
- }
- public static int PLAYAREA(int area, int tempo, int bet)
- {
- return ((((area) << 12) & GameConfig.PLAYAREA_AREA_MASK) |
- (((tempo) << 8) & GameConfig.PLAYAREA_TEMPO_MASK) |
- ((bet) & GameConfig.PLAYAREA_BET_MASK));
- }
- //playarea
- public const int PLAYAREA_TEMPO_MASK = 0x0F00; // 遊戲節奏的位元遮罩
- public const int PLAYAREA_BET_MASK = 0x00FF; // 下注金額的位元遮罩
- public const int PLAYAREA_AREA_MASK = 0xF000; // 遊戲分區的位元遮罩
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement