DragonNest/Server/ServiceManager/SessionWatcher.cpp
Cussrro 47f7895977 Revert "修复编码问题"
This reverts commit 9e69c01767.
2024-12-21 10:04:04 +08:00

39 lines
573 B
C++

#include "Stdafx.h"
#include "SessionWatcher.h"
CSessionWatcher::CSessionWatcher()
{
m_nLastAddingTime = 0;
}
CSessionWatcher::~CSessionWatcher()
{
m_WatchingList.clear();
}
bool CSessionWatcher::CheckWatchingItems()
{
ULONG nCurTick = timeGetTime();
return false;
}
bool CSessionWatcher::AddWatchingItem()
{
ULONG nCurTick = timeGetTime();
m_WatchingList.push_back(nCurTick);
m_nLastAddingTime = nCurTick;
return false;
}
bool CSessionWatcher::DelWatchingItem()
{
if (m_WatchingList.empty())
return false;
m_WatchingList.pop_front();
return true;
}