mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
40 lines
804 B
C
40 lines
804 B
C
|
#ifndef LISTMANAGER_H
|
||
|
#define LISTMANAGER_H
|
||
|
#include <networksystem/serverlisting.h>
|
||
|
|
||
|
enum EHostStatus_t
|
||
|
{
|
||
|
NOT_HOSTING,
|
||
|
HOSTING
|
||
|
};
|
||
|
|
||
|
enum EServerVisibility_t
|
||
|
{
|
||
|
OFFLINE,
|
||
|
HIDDEN,
|
||
|
PUBLIC
|
||
|
};
|
||
|
|
||
|
class CServerListManager
|
||
|
{
|
||
|
public:
|
||
|
CServerListManager();
|
||
|
|
||
|
void GetServerList(string& svMessage);
|
||
|
|
||
|
void LaunchServer(void) const;
|
||
|
void ConnectToServer(const string& svIp, const string& svPort, const string& svNetKey) const;
|
||
|
void ConnectToServer(const string& svServer, const string& svNetKey) const;
|
||
|
|
||
|
void ProcessCommand(const char* pszCommand) const;
|
||
|
|
||
|
EHostStatus_t m_HostingStatus;
|
||
|
EServerVisibility_t m_ServerVisibility;
|
||
|
|
||
|
NetGameServer_t m_Server;
|
||
|
vector<NetGameServer_t> m_vServerList;
|
||
|
};
|
||
|
|
||
|
extern CServerListManager* g_pServerListManager;
|
||
|
#endif // LISTMANAGER_H
|