fix build

This commit is contained in:
m 2024-03-07 20:35:14 -06:00
parent 56895bd234
commit f8fc0e5dba
2 changed files with 18 additions and 0 deletions

View File

@ -279,6 +279,11 @@ namespace party
return -1;
}
void reset_server_connection_state()
{
server_connection_state = {};
}
int get_client_count()
{
auto count = 0;

View File

@ -10,14 +10,27 @@ namespace party
bool hostDefined;
std::string motd;
int max_clients;
std::string base_url; // yk, for when we need it ;)
};
struct discord_information
{
std::string image;
std::string image_text;
};
//void user_download_response(bool response);
void info_response_error(const std::string& error);
void reset_server_connection_state();
void connect(const game::netadr_s& target);
void start_map(const std::string& mapname, bool dev = false);
//void clear_sv_motd();
connection_state get_server_connection_state();
//std::optional<discord_information> get_server_discord_info();
int get_client_num_by_name(const std::string& name);