Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Behavior.push_sign_up_queue(match_type, player_uid, point_type, race_id,
- queue_sign_up,
- cb_send_player, cb_notify_result, is_robot)
- local array_count = queue_sign_up.array_count
- queue_sign_up[player_uid] = {
- uid = player_uid, point_type = point_type,
- state = PlayerMatchState.sign_up,
- seat_position = nil,
- room_uid = "",
- is_robot = is_robot,
- }
- queue_sign_up[array_count + 1] = player_uid
- queue_sign_up.array_count = queue_sign_up.array_count + 1
- if cb_send_player then
- cb_send_player(player_uid, JoinGameCmd.ConfirmSignUp,
- {match_type, point_type, race_id, nil}, nil)
- end
- if cb_notify_result then
- cb_notify_result(StringTable[MatchReply.sign_up_success], player_uid)
- end
- end
Add Comment
Please, Sign In to add comment