29 lines
558 B
C++
29 lines
558 B
C++
namespace Components
|
|
{
|
|
class Party : public Component
|
|
{
|
|
public:
|
|
Party();
|
|
~Party();
|
|
const char* GetName() { return "Party"; };
|
|
|
|
static void Connect(Network::Address target);
|
|
static const char* GetLobbyInfo(SteamID lobby, std::string key);
|
|
static void RemoveLobby(SteamID lobby);
|
|
|
|
private:
|
|
struct JoinContainer
|
|
{
|
|
Network::Address Target;
|
|
std::string Challenge;
|
|
DWORD JoinTime;
|
|
bool Valid;
|
|
};
|
|
|
|
static JoinContainer Container;
|
|
static std::map<uint64_t, Network::Address> LobbyMap;
|
|
|
|
static SteamID GenerateLobbyId();
|
|
};
|
|
}
|