1 #ifndef GAME_SCRIPT_GLOBALSCRIPTS_H
2 #define GAME_SCRIPT_GLOBALSCRIPTS_H
41 std::map<std::string, GlobalScriptDesc>
mScripts;
47 void addScript (
const std::string&
name,
const std::string& targetId =
"");
Definition: locals.hpp:16
Definition: esmreader.hpp:21
Definition: globalscripts.hpp:38
void write(ESM::ESMWriter &writer, Loading::Listener &progress) const
Definition: globalscripts.cpp:128
GlobalScriptDesc()
Definition: globalscripts.cpp:19
Definition: loadinglistener.hpp:8
int countSavedGameRecords() const
Definition: globalscripts.cpp:123
Definition: esmwriter.hpp:17
Definition: esmstore.hpp:17
bool isRunning(const std::string &name) const
Definition: globalscripts.cpp:59
void addStartup()
Add startup script.
Definition: globalscripts.cpp:92
bool readRecord(ESM::ESMReader &reader, uint32_t type)
Definition: globalscripts.cpp:149
Definition: globalscripts.hpp:29
std::map< std::string, GlobalScriptDesc > mScripts
Definition: globalscripts.hpp:41
std::string mId
Definition: globalscripts.hpp:33
void run()
run all active global scripts
Definition: globalscripts.cpp:70
void addScript(const std::string &name, const std::string &targetId="")
Definition: globalscripts.cpp:26
void removeScript(const std::string &name)
Definition: globalscripts.cpp:50
Locals & getLocals(const std::string &name)
Definition: globalscripts.cpp:194
void clear()
Definition: globalscripts.cpp:87
GlobalScripts(const MWWorld::ESMStore &store)
Definition: globalscripts.cpp:22
bool mRunning
Definition: globalscripts.hpp:31
const MWWorld::ESMStore & mStore
Definition: globalscripts.hpp:40
Locals mLocals
Definition: globalscripts.hpp:32
const char * name
Definition: crashcatcher.cpp:59