You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
980 B
31 lines
980 B
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================
|
|
|
|
#include "ServerPingMsgHandler.h"
|
|
|
|
#include "ServerPing.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: Constructor
|
|
//-----------------------------------------------------------------------------
|
|
CServerPingMsgHandlerDetails::CServerPingMsgHandlerDetails( CServerPing *baseobject, HANDLERTYPE type, void *typeinfo /*= NULL*/ )
|
|
: CMsgHandler( type, typeinfo )
|
|
{
|
|
m_pServerPing = baseobject;
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: Process cracked message
|
|
//-----------------------------------------------------------------------------
|
|
bool CServerPingMsgHandlerDetails::Process( netadr_t *from, CMsgBuffer *msg )
|
|
{
|
|
|
|
m_pServerPing->UpdateServer(msg->GetTime());
|
|
return true;
|
|
}
|
|
|
|
|