t7x/src/client/component/party.hpp

17 lines
438 B
C++
Raw Normal View History

2022-10-29 14:21:13 -04:00
#pragma once
#include <utils/info_string.hpp>
2023-04-17 12:42:52 -04:00
#include "game/game.hpp"
2022-10-29 14:21:13 -04:00
namespace party
{
2023-02-05 10:15:29 -05:00
using query_callback_func = void(bool success, const game::netadr_t& host, const ::utils::info_string& info, uint32_t ping);
2022-10-29 14:21:13 -04:00
using query_callback = std::function<query_callback_func>;
void query_server(const game::netadr_t& host, query_callback callback);
2023-04-02 03:10:18 -04:00
game::netadr_t get_connected_server();
2023-04-07 03:01:36 -04:00
bool is_host(const game::netadr_t& addr);
2022-10-29 14:21:13 -04:00
}