⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accountmanage.h

📁 A3服务端AccountServer源代码
💻 H
字号:
#ifndef _ACCOUNTSVR_ACCOUNTMANAGE_H_
#define _ACCOUNTSVR_ACCOUNTMANAGE_H_

#include "Defines.h"
#include <map>

using namespace std;

typedef map<DWORD, ACCOUNT_INFO*, less<DWORD> > ACCOUNT_MAP;
typedef pair<ACCOUNT_MAP::iterator, bool> ACCOUNT_PAIR;

class CAccountManage
{
public:
	void INITforM2S_Error(DWORD dwPCID);
	BOOL VerifyDeletePlayer(DWORD dwPCID, char *szPCName);
	BOOL VerifyCreatePlayer(DWORD dwPCID, char *szPCName);
	BOOL DeleteCharacter(DWORD dwPCID, char *szPCName);
	BOOL CreateNewCharacter(DWORD dwPCID, BYTE byPCType, char *szPCName);

	CAccountManage();
	~CAccountManage();

	BOOL	Insert(DWORD dwPCID, ACCOUNT_INFO * pAccountInfo);
	BOOL	Remove(DWORD dwPCID);

	ACCOUNT_INFO* GetAccountInfo(DWORD dwPCID);	//add aliceblue

	char*	GetAccountName(DWORD dwPCID);
	BOOL	SetCurrentPCIndex(DWORD dwPCID, char *szPCName);
	BOOL	SetCurrentPCIndex(ACCOUNT_INFO * pInfo, char *szPCName); //add aliceblue
	char*	GetCurrentPCName(DWORD dwPCID);
	BOOL	IsValidAccount(DWORD dwPCID, char * szPCName);
	BOOL	IsUpdateAccount(DWORD dwPCID);

//data
	ACCOUNT_MAP m_AccMap;
	//ACCOUNT_MAP::iterator m_AccMapIterator;
	ACCOUNT_PAIR m_pair;
};


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -