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

Method configFunction

source/game/StarStoredFunctions.cpp:186–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186StoredConfigFunctionPtr FunctionDatabase::configFunction(Json const& configOrName) const {
187 if (configOrName.type() == Json::Type::String)
188 return m_configFunctions.get(configOrName.toString());
189 else
190 return make_shared<StoredConfigFunction>(parametricTableFromConfig(configOrName));
191}
192
193ParametricFunction<double, double> FunctionDatabase::parametricFunctionFromConfig(Json descriptor) {
194 try {

Callers 2

biomeOresMethod · 0.80
readOresMethod · 0.80

Calls 3

typeMethod · 0.45
getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected