Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
GameInfo Struct Reference

Public Member Functions

 GameInfo (QString _id, QString _display_name, QString _description, int _players_num, QVector< QString > _role_names)
 
void read (const QJsonObject &json)
 
void write (QJsonObject &json) const
 

Public Attributes

QString id
 
QString display_name
 
QString description
 
int players_num = 0
 
QVector< QString > role_names
 

Detailed Description

Definition at line 7 of file gameinfo.h.

Constructor & Destructor Documentation

◆ GameInfo()

GameInfo::GameInfo ( QString  _id,
QString  _display_name,
QString  _description,
int  _players_num,
QVector< QString >  _role_names 
)

Definition at line 4 of file gameinfo.cpp.

Member Function Documentation

◆ read()

void GameInfo::read ( const QJsonObject &  json)

Definition at line 15 of file gameinfo.cpp.

◆ write()

void GameInfo::write ( QJsonObject &  json) const

Definition at line 35 of file gameinfo.cpp.

Member Data Documentation

◆ description

QString GameInfo::description

Definition at line 21 of file gameinfo.h.

◆ display_name

QString GameInfo::display_name

Definition at line 20 of file gameinfo.h.

◆ id

QString GameInfo::id

Definition at line 19 of file gameinfo.h.

◆ players_num

int GameInfo::players_num = 0

Definition at line 22 of file gameinfo.h.

◆ role_names

QVector<QString> GameInfo::role_names

Definition at line 23 of file gameinfo.h.


The documentation for this struct was generated from the following files: