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

Method onInstanceInit

src/world/Script/ScriptMgr.cpp:426–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426bool Sapphire::Scripting::ScriptMgr::onInstanceInit( InstanceContentPtr instance )
427{
428 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::InstanceContentScript >( instance->getDirectorId() );
429 if( script )
430 {
431 script->onInit( *instance );
432 return true;
433 }
434
435 return false;
436}
437
438bool Sapphire::Scripting::ScriptMgr::onInstanceUpdate( InstanceContentPtr instance, uint64_t tickCount )
439{

Callers 2

initMethod · 0.80
initMethod · 0.80

Calls 2

getDirectorIdMethod · 0.45
onInitMethod · 0.45

Tested by

no test coverage detected