Cavoke
1.1.0
A Platform for creating and hosting multiplayer turn-based board games
|
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 |
Definition at line 7 of file gameinfo.h.
GameInfo::GameInfo | ( | QString | _id, |
QString | _display_name, | ||
QString | _description, | ||
int | _players_num, | ||
QVector< QString > | _role_names | ||
) |
Definition at line 4 of file gameinfo.cpp.
void GameInfo::read | ( | const QJsonObject & | json | ) |
Definition at line 15 of file gameinfo.cpp.
void GameInfo::write | ( | QJsonObject & | json | ) | const |
Definition at line 35 of file gameinfo.cpp.
QString GameInfo::description |
Definition at line 21 of file gameinfo.h.
QString GameInfo::display_name |
Definition at line 20 of file gameinfo.h.
QString GameInfo::id |
Definition at line 19 of file gameinfo.h.
int GameInfo::players_num = 0 |
Definition at line 22 of file gameinfo.h.
QVector<QString> GameInfo::role_names |
Definition at line 23 of file gameinfo.h.