MCPcopy Create free account
hub / github.com/Norbyte/bg3se / Find

Method Find

BG3Extender/Osiris/Shared/CustomFunctions.cpp:301–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301CustomFunction * CustomFunctionManager::Find(FunctionNameAndArity const & signature)
302{
303 auto it = signatures_.find(signature);
304 if (it != signatures_.end()) {
305 return it->second;
306 }
307
308 auto itDyn = dynamicSignatures_.find(signature);
309 if (itDyn != dynamicSignatures_.end()) {
310 return itDyn->second.Function;
311 } else {
312 return nullptr;
313 }
314}
315
316bool CustomFunctionManager::Call(FunctionHandle handle, OsiArgumentDesc const & params)
317{

Callers 1

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected