MCPcopy Create free account
hub / github.com/OpenMW/openmw / executeLocalScripts

Method executeLocalScripts

apps/openmw/engine.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void OMW::Engine::executeLocalScripts()
178{
179 MWWorld::LocalScripts& localScripts = mWorld->getLocalScripts();
180
181 localScripts.startIteration();
182 std::pair<ESM::RefId, MWWorld::Ptr> script;
183 while (localScripts.getNext(script))
184 {
185 MWScript::InterpreterContext interpreterContext(&script.second.getRefData().getLocals(), script.second);
186 mScriptManager->run(script.first, interpreterContext);
187 }
188}
189
190bool OMW::Engine::frame(unsigned frameNumber, float frametime)
191{

Callers

nothing calls this directly

Calls 4

getLocalScriptsMethod · 0.80
startIterationMethod · 0.80
getNextMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected