scriptmanager.h

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 43 行

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