MP: renamed yeet_to_server

This commit is contained in:
Charles Dang 2021-11-16 21:40:58 -05:00
parent 05dd35f1f8
commit 8a9265c8fc
3 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ class mp_manager
public:
// Declare this as a friend to allow direct access to enter_create_mode
friend void mp::start_local_game();
friend void mp::yeet_to_server(const config&);
friend void mp::send_to_server(const config&);
friend mp::lobby_info* mp::get_lobby_info();
mp_manager(const std::optional<std::string> host);
@ -842,7 +842,7 @@ std::string get_profile_link(int user_id)
return "";
}
void yeet_to_server(const config& data)
void send_to_server(const config& data)
{
if(manager && manager->connection) {
manager->connection->send_data(data);

View file

@ -72,7 +72,7 @@ std::string get_profile_link(int user_id);
class lobby_info* get_lobby_info();
/** Attempts to send given data to server if a connection is open. */
void yeet_to_server(const config& data);
void send_to_server(const config& data);
/** RAII helper class to register a network handler. */
class network_registrar

View file

@ -456,7 +456,7 @@ void chatbox::close_window_button_callback(std::string room_name, bool& handled,
void chatbox::send_to_server(const ::config& cfg)
{
mp::yeet_to_server(cfg);
mp::send_to_server(cfg);
}
void chatbox::increment_waiting_whispers(const std::string& name)