26 lines
513 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;
};
2022-09-24 01:55:46 +03:00
void info_response_error(const std::string& error);
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
connection_state get_server_connection_state();
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();
}