rewrite text encoding to handle non-English properly
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
std::shared_ptr<Lobby> create_game_generic(
|
||||
std::shared_ptr<ServerState> s,
|
||||
std::shared_ptr<Client> c,
|
||||
const std::u16string& name,
|
||||
const std::u16string& password = u"",
|
||||
const std::string& name,
|
||||
const std::string& password = "",
|
||||
Episode episode = Episode::EP1,
|
||||
GameMode mode = GameMode::NORMAL,
|
||||
uint8_t difficulty = 0,
|
||||
@@ -19,5 +19,5 @@ std::shared_ptr<Lobby> create_game_generic(
|
||||
|
||||
void on_connect(std::shared_ptr<Client> c);
|
||||
void on_disconnect(std::shared_ptr<Client> c);
|
||||
void on_command(std::shared_ptr<Client> c, uint16_t command, uint32_t flag, const std::string& data);
|
||||
void on_command_with_header(std::shared_ptr<Client> c, std::string& data);
|
||||
void on_command(std::shared_ptr<Client> c, uint16_t command, uint32_t flag, std::string& data);
|
||||
void on_command_with_header(std::shared_ptr<Client> c, const std::string& data);
|
||||
|
||||
Reference in New Issue
Block a user