1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 15:19:55 +00:00
openmw-tes3mp/components/interpreter/runtime.cpp
2010-06-28 20:46:15 +02:00

33 lines
552 B
C++

#include "runtime.hpp"
namespace Interpreter
{
Runtime::Runtime (Context& context) : mContext (context), mCode (0), mPC (0) {}
int Runtime::getPC() const
{
return mPC;
}
void Runtime::configure (const Interpreter::Type_Code *code, int codeSize)
{
clear();
mCode = code;
mCodeSize = codeSize;
mPC = 0;
}
void Runtime::clear()
{
mCode = 0;
mCodeSize = 0;
}
void Runtime::setPC (int PC)
{
mPC = PC;
}
}