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

Method function2

source/game/StarStoredFunctions.cpp:179–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179StoredFunction2Ptr FunctionDatabase::function2(Json const& configOrName) const {
180 if (configOrName.type() == Json::Type::String)
181 return m_functions2.get(configOrName.toString());
182 else
183 return make_shared<StoredFunction2>(multiTable2DFromConfig(configOrName));
184}
185
186StoredConfigFunctionPtr FunctionDatabase::configFunction(Json const& configOrName) const {
187 if (configOrName.type() == Json::Type::String)

Callers 1

evalFunction2Method · 0.80

Calls 3

typeMethod · 0.45
getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected