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

Function RegEditor

Source/URLabEditor/Private/MjEditorOpHandlers.cpp:1644–1659  ·  view source on GitHub ↗

Each editor op carries its category + namespace metadata so the * bridge can synthesise method bindings from the `meta` payload. */

Source from the content-addressed store, hash-verified

1642/** Each editor op carries its category + namespace metadata so the
1643 * bridge can synthesise method bindings from the `meta` payload. */
1644void RegEditor(const TCHAR* Name, const TCHAR* Ns,
1645 URLabOpRegistry::FHandler Body,
1646 std::initializer_list<const TCHAR*> ReplyFields = {},
1647 std::initializer_list<const TCHAR*> RequiredFields = {})
1648{
1649 URLabOpRegistry::FOpDecl Decl;
1650 Decl.Name = Name;
1651 Decl.Category = URLabOpRegistry::EOpCategory::EditorOnly;
1652 Decl.Namespace = Ns;
1653 Decl.Body = MoveTemp(Body);
1654 for (const TCHAR* F : ReplyFields)
1655 Decl.ReplyFields.Add(F);
1656 for (const TCHAR* F : RequiredFields)
1657 Decl.RequiredFields.Add(F);
1658 URLabOpRegistry::RegisterOp(MoveTemp(Decl));
1659}
1660
1661void RegisterAll()
1662{

Callers 1

RegisterAllFunction · 0.85

Calls 1

RegisterOpFunction · 0.85

Tested by

no test coverage detected