mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
local mode is working again
This commit is contained in:
parent
38e4781624
commit
f115342e47
24 changed files with 340 additions and 555 deletions
|
|
@ -36,6 +36,8 @@
|
|||
#include "localserverinterface.h"
|
||||
#include "localclient.h"
|
||||
|
||||
#include "pb/room_commands.pb.h"
|
||||
|
||||
const QString MainWindow::appName = "Cockatrice";
|
||||
|
||||
void MainWindow::updateTabMenu(QMenu *menu)
|
||||
|
|
@ -134,8 +136,9 @@ void MainWindow::actSinglePlayer()
|
|||
}
|
||||
tabSupervisor->startLocal(localClients);
|
||||
|
||||
// Command_CreateGame *createCommand = new Command_CreateGame(0, QString(), QString(), numberPlayers, QList<GameTypeId *>(), false, false, false, false);
|
||||
// mainClient->sendCommand(createCommand);
|
||||
Command_CreateGame createCommand;
|
||||
createCommand.set_max_players(numberPlayers);
|
||||
mainClient->sendCommand(mainClient->prepareRoomCommand(createCommand, 0));
|
||||
}
|
||||
|
||||
void MainWindow::localGameEnded()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue