1
#ifndef SCRIPTHANDLER_H
2
#define SCRIPTHANDLER_H
3
// ScriptHandler.h: interface for the CScriptHandler class.
5
//////////////////////////////////////////////////////////////////////
15
std::list<std::string> ScriptList();
16
static void SelectScript(std::string s);
18
void AddScript(std::string name,CScript* s);
19
void LoadScriptFile(const std::string& file);
21
static CScriptHandler& Instance();
23
CScript* chosenScript; ///< Pointer to the selected CScript.
24
std::string chosenName; ///< Name of the selected script.
26
std::map<std::string,CScript*> scripts; ///< Maps script names to CScript pointers.
27
std::list<CScript*> loaded_scripts; ///< Scripts loaded and owned by CScriptHandler
29
CScriptHandler(CScriptHandler const&);
30
CScriptHandler& operator=(CScriptHandler const&);
35
#endif /* SCRIPTHANDLER_H */