MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / onInterrupt

Method onInterrupt

src/world/Script/ScriptMgr.cpp:343–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343bool Sapphire::Scripting::ScriptMgr::onInterrupt( World::Action::Action& action )
344{
345 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::ActionScript >( action.getId() );
346
347 if( script )
348 {
349 script->onInterrupt( action );
350 return true;
351 }
352 return false;
353}
354
355bool Sapphire::Scripting::ScriptMgr::onStart( World::Action::Action& action )
356{

Callers 1

interruptMethod · 0.45

Calls 1

getIdMethod · 0.45

Tested by

no test coverage detected