MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / RegisterHandler

Function RegisterHandler

Source/URLab/Private/Bridge/OpRegistry.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void RegisterHandler(const FString& OpName, FHandler Fn)
41{
42 FOpDecl Decl;
43 Decl.Name = OpName;
44 Decl.Category = EOpCategory::EditorOnly;
45 Decl.Body = MoveTemp(Fn);
46 FRWScopeLock Lock(MapLock(), SLT_Write);
47 Map().Add(OpName, MoveTemp(Decl));
48}
49
50void UnregisterHandler(const FString& OpName)
51{

Callers 1

RunTestMethod · 0.85

Calls

no outgoing calls

Tested by 1

RunTestMethod · 0.68