mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 00:19:56 +00:00
47 lines
1 KiB
C++
47 lines
1 KiB
C++
#ifndef REFDATA_H
|
|
#define REFDATA_H
|
|
|
|
#include <string>
|
|
|
|
#include "mwscript/locals.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
class Script;
|
|
}
|
|
|
|
namespace OMW
|
|
{
|
|
class RefData
|
|
{
|
|
std::string mHandle;
|
|
|
|
MWScript::Locals mLocals; // if we find the overhead of heaving a locals
|
|
// object in the refdata of refs without a script,
|
|
// we can make this a pointer later.
|
|
|
|
public:
|
|
|
|
std::string getHandle()
|
|
{
|
|
return mHandle;
|
|
}
|
|
|
|
void setLocals (const ESM::Script& script)
|
|
{
|
|
mLocals.configure (script);
|
|
}
|
|
|
|
void setHandle (const std::string& handle)
|
|
{
|
|
mHandle = handle;
|
|
}
|
|
|
|
MWScript::Locals& getLocals()
|
|
{
|
|
return mLocals;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|