2010-07-02 12:31:29 +00:00
|
|
|
#ifndef GAME_SCRIPT_LOCALS_H
|
|
|
|
#define GAME_SCRIPT_LOCALS_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <components/esm/loadscpt.hpp>
|
|
|
|
#include <components/interpreter/types.hpp>
|
|
|
|
|
|
|
|
namespace MWScript
|
|
|
|
{
|
|
|
|
struct Locals
|
|
|
|
{
|
|
|
|
std::vector<Interpreter::Type_Short> mShorts;
|
|
|
|
std::vector<Interpreter::Type_Integer> mLongs;
|
|
|
|
std::vector<Interpreter::Type_Float> mFloats;
|
|
|
|
|
|
|
|
void configure (const ESM::Script& script)
|
|
|
|
{
|
|
|
|
mShorts.clear();
|
2012-09-17 07:37:50 +00:00
|
|
|
mShorts.resize (script.mData.mNumShorts, 0);
|
2010-07-02 12:31:29 +00:00
|
|
|
mLongs.clear();
|
2012-09-17 07:37:50 +00:00
|
|
|
mLongs.resize (script.mData.mNumLongs, 0);
|
2010-07-02 12:31:29 +00:00
|
|
|
mFloats.clear();
|
2012-09-17 07:37:50 +00:00
|
|
|
mFloats.resize (script.mData.mNumFloats, 0);
|
2010-07-02 12:31:29 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|