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

Method function

source/game/StarStoredFunctions.cpp:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172StoredFunctionPtr FunctionDatabase::function(Json const& configOrName) const {
173 if (configOrName.type() == Json::Type::String)
174 return m_functions.get(configOrName.toString());
175 else
176 return make_shared<StoredFunction>(parametricFunctionFromConfig(configOrName));
177}
178
179StoredFunction2Ptr FunctionDatabase::function2(Json const& configOrName) const {
180 if (configOrName.type() == Json::Type::String)

Callers 11

renderMethod · 0.80
generateNpcVariantMethod · 0.80
readNpcVariantMethod · 0.80
initMethod · 0.80
damageSourcesMethod · 0.80
refreshStatusEffectsMethod · 0.80
evalFunctionMethod · 0.80
ChatBubbleManagerMethod · 0.80
runThreadMethod · 0.80
runThreadMethod · 0.80

Calls 3

typeMethod · 0.45
getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected