OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWScript::GlobalScripts Class Reference

#include <globalscripts.hpp>

Collaboration diagram for MWScript::GlobalScripts:

Public Member Functions

 GlobalScripts (const MWWorld::ESMStore &store)
 
void addScript (const std::string &name, const std::string &targetId="")
 
void removeScript (const std::string &name)
 
bool isRunning (const std::string &name) const
 
void run ()
 run all active global scripts More...
 
void clear ()
 
void addStartup ()
 Add startup script. More...
 
int countSavedGameRecords () const
 
void write (ESM::ESMWriter &writer, Loading::Listener &progress) const
 
bool readRecord (ESM::ESMReader &reader, uint32_t type)
 
LocalsgetLocals (const std::string &name)
 

Private Attributes

const MWWorld::ESMStoremStore
 
std::map< std::string,
GlobalScriptDesc
mScripts
 

Constructor & Destructor Documentation

MWScript::GlobalScripts::GlobalScripts ( const MWWorld::ESMStore store)

Member Function Documentation

void MWScript::GlobalScripts::addScript ( const std::string &  name,
const std::string &  targetId = "" 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWScript::GlobalScripts::addStartup ( )

Add startup script.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWScript::GlobalScripts::clear ( )

Here is the caller graph for this function:

int MWScript::GlobalScripts::countSavedGameRecords ( ) const

Here is the caller graph for this function:

Locals & MWScript::GlobalScripts::getLocals ( const std::string &  name)

If the script name has not been added as a global script yet, it is added automatically, but is not set to running state.

Here is the call graph for this function:

bool MWScript::GlobalScripts::isRunning ( const std::string &  name) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWScript::GlobalScripts::readRecord ( ESM::ESMReader reader,
uint32_t  type 
)

Records for variables that do not exist are dropped silently.

Returns
Known type?

Here is the call graph for this function:

Here is the caller graph for this function:

void MWScript::GlobalScripts::removeScript ( const std::string &  name)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWScript::GlobalScripts::run ( )

run all active global scripts

Here is the call graph for this function:

Here is the caller graph for this function:

void MWScript::GlobalScripts::write ( ESM::ESMWriter writer,
Loading::Listener progress 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::map<std::string, GlobalScriptDesc> MWScript::GlobalScripts::mScripts
private
const MWWorld::ESMStore& MWScript::GlobalScripts::mStore
private

The documentation for this class was generated from the following files: