| 119 | }; |
| 120 | |
| 121 | void OnVisualScriptingDebugFlow() |
| 122 | { |
| 123 | if (Internal_OnVisualScriptingDebugFlow == nullptr) |
| 124 | { |
| 125 | Internal_OnVisualScriptingDebugFlow = ManagedEditor::GetStaticClass()->GetMethod("Internal_OnVisualScriptingDebugFlow", 1); |
| 126 | ASSERT(Internal_OnVisualScriptingDebugFlow); |
| 127 | } |
| 128 | |
| 129 | const auto stack = VisualScripting::GetThreadStackTop(); |
| 130 | VisualScriptingDebugFlowInfo flowInfo; |
| 131 | flowInfo.Script = stack->Script->GetOrCreateManagedInstance(); |
| 132 | flowInfo.ScriptInstance = stack->Instance ? stack->Instance->GetOrCreateManagedInstance() : nullptr; |
| 133 | flowInfo.NodeId = stack->Node->ID; |
| 134 | flowInfo.BoxId = stack->Box->ID; |
| 135 | MObject* exception = nullptr; |
| 136 | void* params[1]; |
| 137 | params[0] = &flowInfo; |
| 138 | Internal_OnVisualScriptingDebugFlow->Invoke(nullptr, params, &exception); |
| 139 | if (exception) |
| 140 | { |
| 141 | MException ex(exception); |
| 142 | ex.Log(LogType::Error, TEXT("OnVisualScriptingDebugFlow")); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | void OnLogMessage(LogType type, const StringView& msg); |
| 147 |
nothing calls this directly
no test coverage detected