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

Method onZoneInit

src/world/Script/ScriptMgr.cpp:414–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414bool Sapphire::Scripting::ScriptMgr::onZoneInit( TerritoryPtr pZone )
415{
416 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::ZoneScript >( pZone->getTerritoryTypeId() );
417 if( script )
418 {
419 script->onZoneInit();
420 return true;
421 }
422
423 return false;
424}
425
426bool Sapphire::Scripting::ScriptMgr::onInstanceInit( InstanceContentPtr instance )
427{

Callers 1

initMethod · 0.45

Calls 1

getTerritoryTypeIdMethod · 0.45

Tested by

no test coverage detected