#include <locals.hpp>
|
void | ensure (const std::string &scriptName) |
|
MWScript::Locals::Locals |
( |
| ) |
|
- Returns
- Did the state of *this change from uninitialised to initialised?
void MWScript::Locals::ensure |
( |
const std::string & |
scriptName | ) |
|
|
private |
float MWScript::Locals::getFloatVar |
( |
const std::string & |
script, |
|
|
const std::string & |
var |
|
) |
| |
if var does not exist, returns 0
- Note
- var needs to be in lowercase
-
Locals will be automatically configured first, if necessary
int MWScript::Locals::getIntVar |
( |
const std::string & |
script, |
|
|
const std::string & |
var |
|
) |
| |
if var does not exist, returns 0
- Note
- var needs to be in lowercase
-
Locals will be automatically configured first, if necessary
bool MWScript::Locals::hasVar |
( |
const std::string & |
script, |
|
|
const std::string & |
var |
|
) |
| |
- Note
- Locals will be automatically configured first, if necessary
bool MWScript::Locals::isEmpty |
( |
| ) |
const |
Are there any locals?
- Note
- Will return false, if locals have not been configured yet.
void MWScript::Locals::read |
( |
const ESM::Locals & |
locals, |
|
|
const std::string & |
script |
|
) |
| |
- Note
- Locals will be automatically configured first, if necessary
- Todo:
- write to log
bool MWScript::Locals::setVarByInt |
( |
const std::string & |
script, |
|
|
const std::string & |
var, |
|
|
int |
val |
|
) |
| |
- Note
- var needs to be in lowercase
-
Locals will be automatically configured first, if necessary
bool MWScript::Locals::write |
( |
ESM::Locals & |
locals, |
|
|
const std::string & |
script |
|
) |
| const |
- Note
- If locals have not been configured yet, no data is written.
- Returns
- Locals written?
bool MWScript::Locals::mInitialised |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwscript/locals.hpp
- /home/travis/build/OpenMW/openmw/apps/openmw/mwscript/locals.cpp