Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
cavoke::server::model::GameConfig Struct Reference

Public Member Functions

void validate () const
 Validates config. Throws an exception if invalid.
 

Public Attributes

std::string id
 
std::string display_name
 
std::string description
 
std::string app_type
 
std::string url
 
int players_num
 
std::vector< std::string > role_names
 
json default_settings
 

Detailed Description

Definition at line 11 of file game.h.

Member Function Documentation

◆ validate()

void cavoke::server::model::GameConfig::validate ( ) const
inline

Validates config. Throws an exception if invalid.

Definition at line 22 of file game.h.

Member Data Documentation

◆ app_type

std::string cavoke::server::model::GameConfig::app_type

Definition at line 15 of file game.h.

◆ default_settings

json cavoke::server::model::GameConfig::default_settings

Definition at line 19 of file game.h.

◆ description

std::string cavoke::server::model::GameConfig::description

Definition at line 14 of file game.h.

◆ display_name

std::string cavoke::server::model::GameConfig::display_name

Definition at line 13 of file game.h.

◆ id

std::string cavoke::server::model::GameConfig::id

Definition at line 12 of file game.h.

◆ players_num

int cavoke::server::model::GameConfig::players_num

Definition at line 17 of file game.h.

◆ role_names

std::vector<std::string> cavoke::server::model::GameConfig::role_names

Definition at line 18 of file game.h.

◆ url

std::string cavoke::server::model::GameConfig::url

Definition at line 16 of file game.h.


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