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

Function LoadFunctionGetMin

src/Core/Bindings/obe/Utils/Math/Math.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 MathNamespace.set_function("randfloat", obe::Utils::Math::randfloat);
18 }
19 void LoadFunctionGetMin(sol::state_view state)
20 {
21 sol::table MathNamespace = state["obe"]["Utils"]["Math"].get<sol::table>();
22 MathNamespace.set_function("obe::Utils::Math::getMin",
23 sol::overload(
24 static_cast<int (*)(const int&, const int&)>(obe::Utils::Math::getMin),
25 static_cast<double (*)(const double&, const double&)>(
26 obe::Utils::Math::getMin)));
27 }
28 void LoadFunctionGetMax(sol::state_view state)
29 {
30 sol::table MathNamespace = state["obe"]["Utils"]["Math"].get<sol::table>();

Callers

nothing calls this directly

Calls 1

overloadFunction · 0.85

Tested by

no test coverage detected