MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / InitTreeNodeAsTable

Function InitTreeNodeAsTable

src/Core/Bindings/BindingTree.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace obe::Bindings
8{
9 std::function<void(sol::state_view)> InitTreeNodeAsTable(const std::string& nodeName)
10 {
11 return [nodeName](sol::state_view lua) { lua.safe_script(nodeName + " = {};"); };
12 }
13
14 bool checkIfLuaElementExists(sol::state_view lua, const std::string& path)
15 {

Callers 1

IndexAllBindingsFunction · 0.85

Calls 1

safe_scriptMethod · 0.80

Tested by

no test coverage detected