Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
997 B
C++
40 lines
997 B
C++
#ifndef _HAN_UNITED_DISCONNECT_ID_H_
|
|
#define _HAN_UNITED_DISCONNECT_ID_H_
|
|
|
|
#include <map>
|
|
|
|
class CHanUnitedDisconnectID
|
|
{
|
|
public:
|
|
|
|
struct DisconnectInfo
|
|
{
|
|
int m_nUID; //
|
|
int m_nServerID; //
|
|
int m_nRemainMin; //
|
|
int m_nEndTime; // 무료, 정액 : 20030225, 정량 : RemainMin
|
|
int m_nCRMIndex; // 개인은 0, PC방은 0이상. 보통 개인만 들어온다.
|
|
char m_cBillingType; // E : 개인정량, T : 개인정액, F : 무료사용자
|
|
};
|
|
|
|
static CHanUnitedDisconnectID& GetInstance();
|
|
|
|
CHanUnitedDisconnectID();
|
|
virtual ~CHanUnitedDisconnectID();
|
|
|
|
void UpdateDisconnectInfo(const DisconnectInfo& disconnectInfo);
|
|
bool RemoveDisconnectInfo(int nUID);
|
|
|
|
DisconnectInfo* GetDisconnectInfo(int nUID);
|
|
|
|
void CheckDisconnect();
|
|
|
|
private:
|
|
|
|
typedef std::map<int, DisconnectInfo> DisconnectInfoMap;
|
|
|
|
DisconnectInfoMap m_DisconnectInfoMap;
|
|
};
|
|
|
|
|
|
#endif |