📄 handler_ag_connection.cpp
字号:
#include "StdAfx.h"
#include ".\Handler_AG_CONNECTION.h"
#include "GameServer.h"
#include <PacketStruct_AG.h>
#include <PacketStruct_DG.h>
#include <Protocol_AG.h>
#include <Protocol_DG.h>
#include "ServerSession.h"
#include "PlayerManager.h"
#include "Player.h"
#include "ItemManager.h"
#include "PlayerDisconnectHandler.h"
Handler_AG_CONNECTION::Handler_AG_CONNECTION(void)
{
}
Handler_AG_CONNECTION::~Handler_AG_CONNECTION(void)
{
}
//////////////////////////////////////////////////////////////////////////////////////////////
//
// 努扼捞攫飘客 Agent荤捞 立加捞 谗菌脸阑 锭
//
//////////////////////////////////////////////////////////////////////////////////////////////
Handler_AG_CONNECTION_IMPL( AG_CONNECTION_DISCONNECT_CMD )
{
__UNUSED(wSize);
MSG_AG_CONNECTION_DISCONNECT_CMD * pRecvMsg = (MSG_AG_CONNECTION_DISCONNECT_CMD *)pMsg;
Player * pPlayer = PlayerManager::Instance()->FindPlayer( pRecvMsg->m_dwKey );
if (pPlayer == NULL)
{
// Agent尔 Game Server尔 谗绢廉辑 楷搬登菌阑 锭 game server俊辑绰 蜡历啊 绝促.
SUNLOG( eCRITICAL_LOG, "[Handler_AG_CONNECTION_IMPL( AG_CONNECTION_DISCONNECT_CMD )] No such Player(%d) in GameServer", pRecvMsg->m_dwKey );
return;
}
PlayerDisconnectHandler handler;
handler( pPlayer );
//SUNLOG( eFULL_LOG, "[U:%d][P:%d]:敲饭捞绢立加秦力From俊捞怜飘", pPlayer->GetUserKey(), pPlayer->GetObjectKey() );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -