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

📄 maplist.h

📁 魔域源代码需要的可以学习一下真么这么麻烦啊
💻 H
字号:
// UserList.h: interface for the CMapList class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(MAPLIST_HEADFILE)
#define MAPLIST_HEADFILE

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#pragma warning(disable:4786)
#include "define.h"
#include "windows.h"
#include "NetworkDef.h"
#include <time.h>
#include <vector>
using namespace std;
using namespace world_kernel;

struct CMapSt
{
	OBJID		idMap;
	OBJID		idxMapGroup;
	int			nPortalX;
	int			nPortalY;

	CMapSt() { idMap = ID_NONE; }
	OBJID	GetID() { return idMap; }
};

class IDatabase;
class CMapList  
{
public:
	CMapList();
	virtual ~CMapList();
	static CMapList* CreateNew()		{ return new CMapList; }
	bool	Create(IDatabase* pDb);
	ULONG	Release()			{ delete this; return 0; }

public:
	PROCESS_ID	GetMapProcessID(OBJID idMap);
	CMapSt*		GetMap(OBJID idMap);

protected:
	typedef vector<CMapSt*>	MAP_SET;
	MAP_SET	m_setMap;
};



#endif // !defined(MAPLIST_HEADFILE)

⌨️ 快捷键说明

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