accountmanage.h

来自「A3服务端AccountServer源代码」· C头文件 代码 · 共 43 行

H
43
字号
#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 + =
减小字号Ctrl + -
显示快捷键?