Matchmaking and Teams
src/matchsvr/ provides matchmaking pools, rooms, and result notifications;
src/teamsvr/ provides team room and team matchmaking services.
The lobby's logic/matching/ and logic/team/ integrate player-facing behavior.
Quick Start: Matchmaking
- Enable a
matchsvrinstance and configure Redis. Edit pools, rule groups, matching rules, and parameter merge rules inresource/ExcelTables/Matching.xlsx; followLevel.xlsxfor levels. - Export and publish Excel configuration, and add
matchsvr-sdkto the consumer'sUSE_SERVICE_SDK. - Use generated APIs in
src/matchsvr/sdk/rpc/matching/matchsvrservice.atfw.gen.h. Follow the lobby'suser_matching_manager.h/.cppfor player workflows, and registerMatchsvrNotifyServicehandlers for results. - Use the existing
src/robot/case_config/matching_demo.confscenario to verify start, confirmation, cancellation, and result notifications. Seematching_team_3v3.conffor team matching.
Existing matching parameters are configured through Excel and values. New algorithms or matching semantics need business implementations. See Orbit for battle process management after matching.
Quick Start: Teams
- Enable
teamsvr-room; addteamsvr-matchandmatchsvrfor team matching. Edit and export team types inresource/ExcelTables/Team.xlsx. - Add
team-common-sdkandteam-sdk-roomto the consumer'sUSE_SERVICE_SDK. Room APIs live insrc/teamsvr/sdk/room/rpc/team/team_room_client_api.h. - Follow
src/lobbysvr/service/logic/team/user_team_manager.h/.cppfor members, invitations, captains, and state synchronization. - With test users, verify team creation, invitations/joining, leaving, and any matching workflow; inspect client state and notifications.
Customization and Design
Matchmaking protocols live under src/matchsvr/protocol/, team protocols under src/teamsvr/protocol/,
and client messages in com.protocol.match.proto and com.protocol.team.proto.
Algorithms and WAL implementations live in service logic/ directories; tests live in their test/ directories.
For new RPCs or config fields, use the RPC and
server config guides.