39 lines
828 B
C++
Raw Normal View History

2022-09-24 01:55:46 +03:00
#pragma once
#include "game/game.hpp"
namespace party
{
struct connection_state
{
game::netadr_s host;
std::string challenge;
bool hostDefined;
std::string motd;
int max_clients;
2024-03-07 20:35:14 -06:00
std::string base_url; // yk, for when we need it ;)
};
2022-09-24 01:55:46 +03:00
2024-03-07 20:35:14 -06:00
struct discord_information
{
std::string image;
std::string image_text;
};
//void user_download_response(bool response);
void info_response_error(const std::string& error);
2022-09-24 01:55:46 +03:00
2024-03-07 20:35:14 -06:00
void reset_server_connection_state();
2022-09-24 01:55:46 +03:00
void connect(const game::netadr_s& target);
2022-10-18 06:39:26 +03:00
void start_map(const std::string& mapname, bool dev = false);
2022-09-24 01:55:46 +03:00
2024-03-07 20:35:14 -06:00
//void clear_sv_motd();
connection_state get_server_connection_state();
2024-03-07 20:35:14 -06:00
//std::optional<discord_information> get_server_discord_info();
2022-09-24 01:55:46 +03:00
int get_client_num_by_name(const std::string& name);
int get_client_count();
int get_bot_count();
}