![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Builds cockatrice://joingame links that let another user join a server game. More...
#include <QString>Go to the source code of this file.
Classes | |
| struct | GameInviteOption |
Functions | |
| QString | makeGameJoinLink (const QString &hostname, int port, int roomId, int gameId, const QString &description=QString()) |
Builds cockatrice://joingame links that let another user join a server game.
| QString makeGameJoinLink | ( | const QString & | hostname, |
| int | port, | ||
| int | roomId, | ||
| int | gameId, | ||
| const QString & | description = QString() ) |
Builds a cockatrice://joingame link for the given server game. The receiver's client opens it through the intent chain (connect -> join room -> join game). description, when non-empty, is embedded in the link as the URL-encoded "game" query item so the receiving client can name the game in its confirm prompt and chat anchor instead of only its numeric id. Links built without it stay valid: the parser and chat renderer fall back to the id alone.