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

29 lines
No EOL
1.5 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
#include "DNServerDef.h"
#include "Util.h"
class CDNUserSession;
class CDNUserSendManager;
class CDNIsolate : public TBoostMemoryPool<CDNIsolate>
{
public:
CDNIsolate(CDNUserSendManager * pManager);
~CDNIsolate();
bool AddIsolateItem(const TIsolateItem * pItem);
bool DelIsolateItem(const WCHAR * pDelitem);
bool DelIsolateItem(INT64 biCharacterDBID);
int GetIsolateCount() { return (int)m_IsolateList.size(); }
bool IsIsolateItem(const WCHAR * pName);
INT64 GetIsolateCharDBID(const WCHAR * pName);
bool GetIsolateChrName(INT64 biIsolateDBID, WCHAR * pName);
//for send
void GetIsolateList(SCIsolateList * pPacket, int &nSize);
private:
CDNUserSendManager * m_pSendManager;
std::map <std::wstring, TIsolateItem*> m_IsolateList;
};