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

Method findScripts

src/world/Script/ScriptLoader.cpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void Sapphire::Scripting::ScriptLoader::findScripts( std::set< Sapphire::Scripting::ScriptInfo* >& scripts,
176 const std::string& search )
177{
178 for( auto it = m_scriptMap.begin(); it != m_scriptMap.end(); ++it )
179 {
180 if( it->second->library_name.find( search ) != std::string::npos )
181 {
182 scripts.insert( it->second );
183 }
184 }
185}
186
187const std::string& Sapphire::Scripting::ScriptLoader::getCachePath() const
188{

Callers 1

scriptMethod · 0.45

Calls 3

insertMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected