📄 handler_am.cpp
字号:
#include "stdafx.h"
#include "Handler_AM.h"
#include "ServerSessionManager.h"
#include "AgentServerSession.h"
#include <PacketStruct_AM.h>
#include <Protocol_AM.h>
#include <PacketStruct_MO.h>
#include <Protocol_MO.h>
// 辆丰 橇肺配妮 困秦
#include "MasterServer.h"
// 悼立荐 焊绊 菩哦 罐澜
VOID Handler_AM::OnAM_OPERATION_USERCOUNT_SYN( AgentServerSession *pAgentServer, MSG_BASE *pMsg, WORD wSize )
{
/*
MSG_AM_USERCOUNT_SYN *pRecvMsg = (MSG_AM_USERCOUNT_SYN*)pMsg;
SERVER_KEY agentSrverKey = pAgentServer->GetServerKey();
MSG_MO_RTTG_USERCOUNT_NTF sendMsg;
sendMsg.dwWorldID = agentSrverKey.GetWorldID();
sendMsg.dwChannelID = agentSrverKey.GetChannelID();
sendMsg.dwVillageCount = pRecvMsg->dwVillageCount;
sendMsg.dwBattleZoneCount = pRecvMsg->dwBattleZoneCount;
ServerSession *pOpServer = ServerSessionManager::Instance()->GetOpServer();
if( pOpServer )
{
pOpServer->Send( (BYTE*)&sendMsg, sizeof(MSG_MO_RTTG_USERCOUNT_NTF) );
//MessageOut( eCRITICAL_LOG, "悼立荐 焊绊: 岿靛(%d) 盲澄(%d) 付阑(%d) 傈捧(%d)\n",
// sendMsg.dwWorldID, sendMsg.dwChannelID, sendMsg.dwVillageCount, sendMsg.dwBattleZoneCount );
}
*/
}
VOID Handler_AM::OnSERVERCOMMON_SERVERSHUTDOWN_ANS( AgentServerSession *pAgentServer, MSG_BASE *pMsg, WORD wSize )
{
// 辆丰 措扁吝牢 仇捞 辆丰等 巴捞骨肺 眉农
if( MasterServer::Instance()->IsExitServer() && MasterServer::Instance()->IsSendExit() )
{
MasterServer::Instance()->RemoveExitServer( pAgentServer->GetServerKey() ); // 辆丰登菌促!
MessageOut( eFULL_LOG, "Agent Exit Message Recv[%u]", pAgentServer->GetServerKey() );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -