#include #include #include "Client.hh" #include "ServerState.hh" std::shared_ptr create_game_generic( std::shared_ptr s, std::shared_ptr c, const std::u16string& name, const std::u16string& password = u"", Episode episode = Episode::EP1, GameMode mode = GameMode::NORMAL, uint8_t difficulty = 0, uint32_t flags = 0, bool allow_v1 = false, std::shared_ptr watched_lobby = nullptr, std::shared_ptr battle_player = nullptr); void on_connect(std::shared_ptr c); void on_disconnect(std::shared_ptr c); void on_command(std::shared_ptr c, uint16_t command, uint32_t flag, const std::string& data); void on_command_with_header(std::shared_ptr c, std::string& data);