OpenMW
|
List of active local scripts. More...
#include <localscripts.hpp>
Public Member Functions | |
LocalScripts (const MWWorld::ESMStore &store) | |
void | startIteration () |
Set the iterator to the begin of the script list. More... | |
bool | getNext (std::pair< std::string, Ptr > &script) |
void | add (const std::string &scriptName, const Ptr &ptr) |
Add script to collection of active local scripts. More... | |
void | addCell (CellStore *cell) |
Add all local scripts in a cell. More... | |
void | clear () |
Clear active local scripts collection. More... | |
void | clearCell (CellStore *cell) |
Remove all scripts belonging to cell. More... | |
void | remove (RefData *ref) |
void | remove (const Ptr &ptr) |
Remove script for given reference (ignored if reference does not have a script listed). More... | |
Private Attributes | |
std::list< std::pair < std::string, Ptr > > | mScripts |
std::list< std::pair < std::string, Ptr > >::iterator | mIter |
const MWWorld::ESMStore & | mStore |
List of active local scripts.
MWWorld::LocalScripts::LocalScripts | ( | const MWWorld::ESMStore & | store | ) |
void MWWorld::LocalScripts::add | ( | const std::string & | scriptName, |
const Ptr & | ptr | ||
) |
Add script to collection of active local scripts.
void MWWorld::LocalScripts::addCell | ( | CellStore * | cell | ) |
Add all local scripts in a cell.
void MWWorld::LocalScripts::clear | ( | ) |
Clear active local scripts collection.
void MWWorld::LocalScripts::clearCell | ( | CellStore * | cell | ) |
Remove all scripts belonging to cell.
Get next local script
void MWWorld::LocalScripts::remove | ( | RefData * | ref | ) |
void MWWorld::LocalScripts::remove | ( | const Ptr & | ptr | ) |
Remove script for given reference (ignored if reference does not have a script listed).
void MWWorld::LocalScripts::startIteration | ( | ) |
Set the iterator to the begin of the script list.
|
private |