|
|
|
@ -278,7 +278,7 @@ namespace MWScript
|
|
|
|
|
int index = MWBase::Environment::get().getScriptManager()->getLocalIndex (scriptId, name, 's');
|
|
|
|
|
|
|
|
|
|
ptr.getRefData().setLocals (
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().scripts.find (scriptId));
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (scriptId));
|
|
|
|
|
return ptr.getRefData().getLocals().mShorts[index];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -291,7 +291,7 @@ namespace MWScript
|
|
|
|
|
int index = MWBase::Environment::get().getScriptManager()->getLocalIndex (scriptId, name, 'l');
|
|
|
|
|
|
|
|
|
|
ptr.getRefData().setLocals (
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().scripts.find (scriptId));
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (scriptId));
|
|
|
|
|
return ptr.getRefData().getLocals().mLongs[index];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -304,7 +304,7 @@ namespace MWScript
|
|
|
|
|
int index = MWBase::Environment::get().getScriptManager()->getLocalIndex (scriptId, name, 'f');
|
|
|
|
|
|
|
|
|
|
ptr.getRefData().setLocals (
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().scripts.find (scriptId));
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (scriptId));
|
|
|
|
|
return ptr.getRefData().getLocals().mFloats[index];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -317,7 +317,7 @@ namespace MWScript
|
|
|
|
|
int index = MWBase::Environment::get().getScriptManager()->getLocalIndex (scriptId, name, 's');
|
|
|
|
|
|
|
|
|
|
ptr.getRefData().setLocals (
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().scripts.find (scriptId));
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (scriptId));
|
|
|
|
|
ptr.getRefData().getLocals().mShorts[index] = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -330,7 +330,7 @@ namespace MWScript
|
|
|
|
|
int index = MWBase::Environment::get().getScriptManager()->getLocalIndex (scriptId, name, 'l');
|
|
|
|
|
|
|
|
|
|
ptr.getRefData().setLocals (
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().scripts.find (scriptId));
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (scriptId));
|
|
|
|
|
ptr.getRefData().getLocals().mLongs[index] = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -343,7 +343,7 @@ namespace MWScript
|
|
|
|
|
int index = MWBase::Environment::get().getScriptManager()->getLocalIndex (scriptId, name, 'f');
|
|
|
|
|
|
|
|
|
|
ptr.getRefData().setLocals (
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().scripts.find (scriptId));
|
|
|
|
|
*MWBase::Environment::get().getWorld()->getStore().get<ESM::Script>().find (scriptId));
|
|
|
|
|
ptr.getRefData().getLocals().mFloats[index] = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|