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

📄 scriptmanager.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : ScriptManager.h// Written By  : excel96// Description : //////////////////////////////////////////////////////////////////////////////#ifndef __SCRIPT_MANAGER_H__#define __SCRIPT_MANAGER_H__#include "Types.h"#include "Exception.h"#include "Script.h"#include <hash_map>//////////////////////////////////////////////////////////////////////////////// class ScriptManager//// 葛电 NPC甸捞 傍蜡窍绰 public script 肚绰 漂沥 NPC 父捞 荤侩窍绰 private script db// 甫 唱鸥郴绰 script manager 捞促.//////////////////////////////////////////////////////////////////////////////class ScriptManager {public:	void init() throw(Error) { load("PUBLIC"); }	void load(const string & name) throw(Error);public:	Script* getScript(ScriptID_t scriptID) const throw(NoSuchElementException, Error);	void setScript(ScriptID_t scriptID, Script* pScript) throw(DuplicatedException, Error);	string toString() const throw();private:	hash_map< ScriptID_t, Script* > m_Scripts; // hash map of script};// global variable declarationextern ScriptManager* g_pPublicScriptManager;#endif

⌨️ 快捷键说明

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