MCPcopy Create free account
hub / github.com/Norbyte/ositools / ThrowEvent

Method ThrowEvent

OsiInterface/CustomFunctions.cpp:256–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254};
255
256void CustomFunctionInjector::ThrowEvent(FunctionHandle handle, OsiArgumentDesc * args) const
257{
258 auto it = divToOsiMappings_.find(handle);
259 if (it != divToOsiMappings_.end()) {
260 CustomEventGuard guard;
261 if (guard.CanThrowEvent()) {
262 auto osiris = gOsirisProxy->GetDynamicGlobals().OsirisObject;
263 gOsirisProxy->GetWrappers().Event.CallOriginal(osiris, it->second, args);
264 } else {
265 OsiError("Maximum Osiris event depth (" << gCustomEventDepth << ") exceeded");
266 }
267 } else {
268 OsiError("Event handle not mapped: " << std::hex << (unsigned)handle);
269 }
270}
271
272void OsiFunctionToSymbolInfo(Function & func, OsiSymbolInfo & symbol)
273{

Callers 7

IterateStatusesFunction · 0.80
OnStatusHitEnterMethod · 0.80
OnStatusHealEnterMethod · 0.80
OnCharacterHitMethod · 0.80
OnApplyStatusMethod · 0.80
ForLoopFunction · 0.80
ForLoopObjectFunction · 0.80

Calls 2

CanThrowEventMethod · 0.80
CallOriginalMethod · 0.45

Tested by

no test coverage detected