|
OpenMW
|
List of active local scripts. More...
#include <localscripts.hpp>
Public Member Functions | |
| LocalScripts (const MWWorld::ESMStore &store) | |
| void | setIgnore (const Ptr &ptr) |
| void | startIteration () |
| Set the iterator to the begin of the script list. | |
| bool | isFinished () const |
| Is iteration finished? | |
| std::pair< std::string, Ptr > | getNext () |
| Get next local script (must not be called if isFinished()) | |
| void | add (const std::string &scriptName, const Ptr &ptr) |
| Add script to collection of active local scripts. | |
| void | addCell (CellStore *cell) |
| Add all local scripts in a cell. | |
| void | clear () |
| Clear active local scripts collection. | |
| void | clearCell (CellStore *cell) |
| Remove all scripts belonging to cell. | |
| void | remove (RefData *ref) |
| void | remove (const Ptr &ptr) |
| Remove script for given reference (ignored if reference does not have a scirpt listed). | |
Private Attributes | |
| std::list< std::pair < std::string, Ptr > > | mScripts |
| std::list< std::pair < std::string, Ptr > >::iterator | mIter |
| MWWorld::Ptr | mIgnore |
| 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 | ( | Ptr::CellStore * | cell | ) |
Add all local scripts in a cell.
| void MWWorld::LocalScripts::clear | ( | ) |
Clear active local scripts collection.
| void MWWorld::LocalScripts::clearCell | ( | Ptr::CellStore * | cell | ) |
Remove all scripts belonging to cell.
| std::pair< std::string, MWWorld::Ptr > MWWorld::LocalScripts::getNext | ( | ) |
Get next local script (must not be called if isFinished())
| bool MWWorld::LocalScripts::isFinished | ( | ) | const |
Is iteration finished?
| 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 scirpt listed).
| void MWWorld::LocalScripts::setIgnore | ( | const Ptr & | ptr | ) |
Mark a single reference for ignoring during iteration over local scripts (will revoke previous ignores).
Set the iterator to the begin of the script list.
MWWorld::Ptr MWWorld::LocalScripts::mIgnore [private] |
std::list<std::pair<std::string, Ptr> >::iterator MWWorld::LocalScripts::mIter [private] |
std::list<std::pair<std::string, Ptr> > MWWorld::LocalScripts::mScripts [private] |
const MWWorld::ESMStore& MWWorld::LocalScripts::mStore [private] |
1.7.6.1