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

Method onInstanceUpdate

src/world/Script/ScriptMgr.cpp:438–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438bool Sapphire::Scripting::ScriptMgr::onInstanceUpdate( InstanceContentPtr instance, uint64_t tickCount )
439{
440 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::InstanceContentScript >( instance->getDirectorId() );
441
442 if( script )
443 {
444 script->onUpdate( *instance, tickCount );
445 return true;
446 }
447
448 return false;
449}
450
451bool Sapphire::Scripting::ScriptMgr::onInstanceEnterTerritory( InstanceContentPtr instance, Entity::Player& player,
452 uint32_t eventId, uint16_t param1, uint16_t param2 )

Callers 2

onUpdateMethod · 0.80
onUpdateMethod · 0.80

Calls 2

getDirectorIdMethod · 0.45
onUpdateMethod · 0.45

Tested by

no test coverage detected