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

Method AddFunctionsToForward

core/logic/PluginSys.cpp:2155–2165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2153}
2154
2155void CPluginManager::AddFunctionsToForward(const char *name, IChangeableForward *pForward)
2156{
2157 for (PluginIter iter(m_plugins); !iter.done(); iter.next()) {
2158 CPlugin *pPlugin = (*iter);
2159
2160 if (pPlugin->GetStatus() <= Plugin_Paused) {
2161 if (IPluginFunction *pFunction = pPlugin->GetBaseContext()->GetFunctionByName(name))
2162 pForward->AddFunction(pFunction);
2163 }
2164 }
2165}
2166
2167CPlugin *CPluginManager::GetPluginFromIdentity(IdentityToken_t *pToken)
2168{

Callers 1

CreateForwardMethod · 0.80

Calls 5

doneMethod · 0.80
nextMethod · 0.80
GetBaseContextMethod · 0.80
AddFunctionMethod · 0.80
GetStatusMethod · 0.45

Tested by

no test coverage detected