iw4x-client/iw4/Components/Party.hpp

33 lines
746 B
C++
Raw Normal View History

2015-12-25 15:42:35 -05:00
namespace Components
{
class Party : public Component
{
public:
Party();
~Party();
const char* GetName() { return "Party"; };
static void Connect(Network::Address target);
2015-12-26 21:56:00 -05:00
static const char* GetLobbyInfo(SteamID lobby, std::string key);
static void RemoveLobby(SteamID lobby);
2015-12-25 15:42:35 -05:00
private:
struct JoinContainer
{
Network::Address Target;
std::string Challenge;
DWORD JoinTime;
bool Valid;
};
static JoinContainer Container;
2015-12-26 21:56:00 -05:00
static std::map<uint64_t, Network::Address> LobbyMap;
static SteamID GenerateLobbyId();
2015-12-27 09:39:49 -05:00
static Game::dvar_t* RegisterMinPlayers(const char* name, int value, int min, int max, Game::dvar_flag flag, const char* description);
static void ConnectError(std::string message);
2015-12-25 15:42:35 -05:00
};
}