OpenMW
|
00001 #ifndef GAME_SCRIPT_LOCALS_H 00002 #define GAME_SCRIPT_LOCALS_H 00003 00004 #include <vector> 00005 00006 #include <components/interpreter/types.hpp> 00007 00008 namespace ESM 00009 { 00010 struct Script; 00011 } 00012 00013 namespace MWScript 00014 { 00015 class Locals 00016 { 00017 public: 00018 std::vector<Interpreter::Type_Short> mShorts; 00019 std::vector<Interpreter::Type_Integer> mLongs; 00020 std::vector<Interpreter::Type_Float> mFloats; 00021 00022 void configure (const ESM::Script& script); 00023 bool setVarByInt(const std::string& script, const std::string& var, int val); 00024 int getIntVar (const std::string& script, const std::string& var); 00025 00026 }; 00027 } 00028 00029 #endif 00030