Information about the game is now shown in lobby, when selecting a game.
Some GUI modifications, GUI update is working properly now if the dialog is shown the second time (after clearing items). List of players for the game is still missing. With the new on-demand model for player id/player name, this is kind of hard to implement.
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#ifndef _GAMEDATA_H_
|
||||
#define _GAMEDATA_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
enum GameMode
|
||||
{
|
||||
GAME_MODE_CREATED = 1,
|
||||
@@ -41,6 +43,15 @@ struct GameData
|
||||
int playerActionTimeoutSec;
|
||||
};
|
||||
|
||||
struct GameInfo
|
||||
{
|
||||
GameInfo() : mode(GAME_MODE_CREATED), isPasswordProtected(false) {}
|
||||
std::string name;
|
||||
GameData data;
|
||||
GameMode mode;
|
||||
bool isPasswordProtected;
|
||||
};
|
||||
|
||||
struct StartData
|
||||
{
|
||||
StartData() : startDealerPlayerId(0), numberOfPlayers(0) {}
|
||||
|
||||
Reference in New Issue
Block a user