MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / evalFunction

Method evalFunction

source/game/scripting/StarRootLuaBindings.cpp:292–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292double LuaBindings::RootCallbacks::evalFunction(Root* root, String const& arg1, double arg2) {
293 return root->functionDatabase()->function(arg1)->evaluate(arg2);
294}
295
296double LuaBindings::RootCallbacks::evalFunction2(Root* root, String const& arg1, double arg2, double arg3) {
297 return root->functionDatabase()->function2(arg1)->evaluate(arg2, arg3);

Callers

nothing calls this directly

Calls 3

functionMethod · 0.80
functionDatabaseMethod · 0.80
evaluateMethod · 0.45

Tested by

no test coverage detected