Пример #1
0
void			CGameSpy_Browser::RefreshQuick(int Index)
{
	void* pServer = xrGS_ServerBrowserGetServer(m_pGSBrowser, Index);
	if (!pServer) return;
	ServerInfo xServerInfo;
	ReadServerInfo(&xServerInfo, pServer);
	xrGS_ServerBrowserAuxUpdateServer(m_pGSBrowser, pServer, SBFalse, SBTrue);
};
Пример #2
0
bool			CGameSpy_Browser::HasAllKeys(int Index)
{
	void* pServer = xrGS_ServerBrowserGetServer(m_pGSBrowser, Index);
	if (!pServer) return true;
	ServerInfo xServerInfo;
	ReadServerInfo(&xServerInfo, pServer);
//	xrGS_ServerBrowserAuxUpdateServer(m_pGSBrowser, pServer, SBFalse, SBTrue);
	return (xrGS_SBServerHasFullKeys(pServer) == SBTrue);
};
Пример #3
0
void CGameSpy_Browser::CallBack_OnUpdateCompleted()
{
	int NumServers = xrGS_ServerBrowserCount(m_pGSBrowser);

	ServerInfo NewServerInfo;
	for (int i=0; i<NumServers; i++)
	{
		void* pServer = xrGS_ServerBrowserGetServer(m_pGSBrowser, i);
		ReadServerInfo(&NewServerInfo, pServer);
	}
};
Пример #4
0
void GameServerAuthCallBackFunc(int Type, int Data)
{
	if (!Type)
	{
		switch (Data)
		{
		case 1:	ReadCommonServerInfo();			break;
		case 2:	GameMonsterAllCloseAndReLoad();	break;
		case 3:	ReadServerInfo();				break;
		}
	}
}
Пример #5
0
void CGameSpy_Browser::GetServerInfoByIndex(ServerInfo* pServerInfo, int idx)
{
	void* pServer = xrGS_ServerBrowserGetServer(m_pGSBrowser, idx);
	ReadServerInfo(pServerInfo, pServer);
	pServerInfo->Index = idx;
}