本文整理汇总了C++中CAccount::OnLogout方法的典型用法代码示例。如果您正苦于以下问题:C++ CAccount::OnLogout方法的具体用法?C++ CAccount::OnLogout怎么用?C++ CAccount::OnLogout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAccount
的用法示例。
在下文中一共展示了CAccount::OnLogout方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetAccount
CClient::~CClient()
{
bool bWasChar;
// update ip history
#ifndef _MTNETWORK
HistoryIP& history = g_NetworkIn.getIPHistoryManager().getHistoryForIP(GetPeer());
#else
HistoryIP& history = g_NetworkManager.getIPHistoryManager().getHistoryForIP(GetPeer());
#endif
if ( GetConnectType() != CONNECT_GAME )
history.m_connecting--;
history.m_connected--;
bWasChar = ( m_pChar != NULL );
CharDisconnect(); // am i a char in game ?
Cmd_GM_PageClear();
// Clear containers (CTAG and TOOLTIP)
m_TagDefs.Empty();
m_TooltipData.Clean(true);
CAccount * pAccount = GetAccount();
if ( pAccount )
{
pAccount->OnLogout(this, bWasChar);
m_pAccount = NULL;
}
if (m_pPopupPacket != NULL)
{
delete m_pPopupPacket;
m_pPopupPacket = NULL;
}
if (m_net->isClosed() == false)
g_Log.EventError("Client being deleted without being safely removed from the network system\n");
}