Matchmaking/Hub Games
We provide APIs/settings to manage how we matchmake players to servers in your game, and allow you to route players to new servers to support Hub game scenarios.
Matchmaking Preferences
Hub Games
API Reference
Server :: struct {
// Transfer a player to another game (hub -> match, match -> hub, etc).
transfer_player_to_game :: proc(player: Player, game_id: string);
// Set matchmaking priority for this instance (0 = highest priority).
set_matchmaking_priority :: proc(priority: int);
// Kick a player from the server.
kick_player :: proc(player: Player, reason: string = "Kicked.");
// Queue system for custom matchmaking. These APIs are currently deprecated but may return. Prefer the transfer_player_to_game API.
queue_add_player :: proc(queue: string, player: Player);
queue_remove_player :: proc(queue: string, player: Player);
queue_set_server_available :: proc(queue: string, available: bool);
// Server identity.
get_id :: proc() -> string;
get_private_server_host_id :: proc() -> string, bool;
}Example: send a player to another game
Last updated