MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / OnPluginLoaded

Method OnPluginLoaded

core/logic/ForwardSys.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void CForwardManager::OnPluginLoaded(IPlugin *plugin)
89{
90 /* Attach any globally managed forwards */
91 for (ForwardIter iter(m_managed); !iter.done(); iter.next()) {
92 CForward *fwd = (*iter);
93 IPluginFunction *pFunc = plugin->GetBaseContext()->GetFunctionByName(fwd->GetForwardName());
94 if (pFunc)
95 fwd->AddFunction(pFunc);
96 }
97}
98
99void CForwardManager::OnPluginUnloaded(IPlugin *plugin)
100{

Callers

nothing calls this directly

Calls 5

doneMethod · 0.80
nextMethod · 0.80
GetBaseContextMethod · 0.80
GetForwardNameMethod · 0.80
AddFunctionMethod · 0.80

Tested by

no test coverage detected