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

Function ForLoopObject

OsiInterface/Functions/UtilityFunctions.cpp:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 void ForLoopObject(OsiArgumentDesc const & args)
96 {
97 auto objectGuid = args[0].String;
98 auto eventName = args[1].String;
99 auto count = args[2].Int32;
100
101 for (int32_t index = 0; index < count; index++) {
102 auto eventArgs = OsiArgumentDesc::Create(OsiArgumentValue{ ValueType::GuidString, objectGuid });
103 eventArgs->Add(OsiArgumentValue{ ValueType::String, eventName });
104 eventArgs->Add(OsiArgumentValue{ (int64_t)index });
105
106 gOsirisProxy->GetCustomFunctionInjector().ThrowEvent(ForLoopObjectEventHandle, eventArgs);
107
108 delete eventArgs;
109 }
110 }
111 }
112
113 void CustomFunctionLibrary::RegisterHelperFunctions()

Callers

nothing calls this directly

Calls 2

ThrowEventMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected