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

31 lines
No EOL
653 B
C++

#pragma once
//일정 영역에 일정시간동안 진입해있거나 진입하는 유저들에게 알려야 할 것이 있을 경우
struct TNoticeInfo
{
TNoticeTypeInfo TypeInfo; //apply region
WCHAR wszMsg[CHATLENMAX]; //message
ULONG nCreateTime;
ULONG nDestroyTime;
};
class CDNNoticeSystem
{
public:
CDNNoticeSystem();
~CDNNoticeSystem();
bool AddNotice(const TNoticeTypeInfo * pInfo, const WCHAR * pNoticeMsg);
bool CancelNotice();
bool GetNotice(int nChannelID, int nMapIdx, TNoticeInfo & Info);
protected:
CSyncLock m_Sync;
std::list <TNoticeInfo> m_pNoticeInfoList;
bool CheckNotice(const TNoticeTypeInfo * pInfo);
};
extern CDNNoticeSystem * g_pNoticeSystem;