Add option to share decklists on load.

Took 1 hour 58 minutes

Took 9 minutes


Took 39 minutes
This commit is contained in:
Lukas Brübach 2025-07-09 21:04:57 +02:00
parent 3a42354efd
commit 0e45652f3f
23 changed files with 198 additions and 25 deletions

View file

@ -836,6 +836,9 @@ Server_Player::cmdDeckSelect(const Command_DeckSelect &cmd, ResponseContainer &r
Context_DeckSelect context;
context.set_deck_hash(deck->getDeckHash().toStdString());
context.set_sideboard_size(deck->getSideboardSize());
if (game->getShareDecklistsOnLoad()) {
context.set_deck_list(deck->writeToString_Native().toStdString());
}
ges.setGameEventContext(context);
auto *re = new Response_DeckDownload;