DragonNest/Server/ServiceManager/WatcherBase.h
2024-12-20 16:56:44 +08:00

36 lines
No EOL
1.3 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


#pragma once
// PatchWatcher를 그대로 베이스클래스로 만들어서 추후에 확장하여 사용할수 있도록 한다.
struct _WATCH_SPEC
{
int nNID;
WCHAR wszType[64];
ULONG nInsertTick;
};
struct _WATCH_OBJECT
{
int nVersionID;
std::list <_WATCH_SPEC> SpecList;
};
class CWatcherBase
{
public:
CWatcherBase();
~CWatcherBase();
virtual bool AddWatchSpec(int nVersionID, int nNID, const WCHAR * pType);
virtual bool DelWatchSpec(int nVersionID, int nNID, const WCHAR * pType, bool &bComplete);
virtual bool HasWatchingSpec();
virtual void DelWatchSpec(int nNID);
virtual void ClearWatchingSpec();
protected:
std::list <_WATCH_OBJECT> m_WatchList;
CSyncLock m_Sync;
};