1 #ifndef GAME_SCRIPT_LOCALS_H
2 #define GAME_SCRIPT_LOCALS_H
20 void ensure (
const std::string& scriptName);
23 std::vector<Interpreter::Type_Short>
mShorts;
24 std::vector<Interpreter::Type_Integer>
mLongs;
25 std::vector<Interpreter::Type_Float>
mFloats;
40 bool setVarByInt(
const std::string& script,
const std::string& var,
int val);
46 bool hasVar(
const std::string& script,
const std::string& var);
52 int getIntVar (
const std::string& script,
const std::string& var);
58 float getFloatVar (
const std::string& script,
const std::string& var);
bool write(ESM::Locals &locals, const std::string &script) const
Definition: locals.cpp:151
Definition: locals.hpp:16
Definition: loadscpt.hpp:19
std::vector< Interpreter::Type_Integer > mLongs
Definition: locals.hpp:24
bool setVarByInt(const std::string &script, const std::string &var, int val)
Definition: locals.cpp:126
bool hasVar(const std::string &script, const std::string &var)
Definition: locals.cpp:57
bool isEmpty() const
Definition: locals.cpp:52
bool mInitialised
Definition: locals.hpp:18
int getIntVar(const std::string &script, const std::string &var)
Definition: locals.cpp:74
Locals()
Definition: locals.cpp:31
float getFloatVar(const std::string &script, const std::string &var)
Definition: locals.cpp:100
Storage structure for local variables (only used in saved games)
Definition: locals.hpp:18
std::vector< Interpreter::Type_Short > mShorts
Definition: locals.hpp:23
void read(const ESM::Locals &locals, const std::string &script)
Definition: locals.cpp:196
bool configure(const ESM::Script &script)
Definition: locals.cpp:33
std::vector< Interpreter::Type_Float > mFloats
Definition: locals.hpp:25
void ensure(const std::string &scriptName)
Definition: locals.cpp:20