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

Public Member Functions

 GamesStorage (GamesStorageConfig config)
 
void update ()
 
std::vector< Game > list_games ()
 
std::optional< Game > get_game_by_id (const std::string &game_id)
 

Detailed Description

Definition at line 12 of file games_storage.h.

Constructor & Destructor Documentation

◆ GamesStorage()

cavoke::server::model::GamesStorage::GamesStorage ( GamesStorageConfig  config)
explicit

Definition at line 10 of file games_storage.cpp.

Member Function Documentation

◆ get_game_by_id()

std::optional< Game > cavoke::server::model::GamesStorage::get_game_by_id ( const std::string &  game_id)

Definition at line 65 of file games_storage.cpp.

◆ list_games()

std::vector< Game > cavoke::server::model::GamesStorage::list_games ( )

Definition at line 30 of file games_storage.cpp.

◆ update()

void cavoke::server::model::GamesStorage::update ( )

Definition at line 46 of file games_storage.cpp.


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