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

Method configValue

source/game/StarObject.cpp:679–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679Json Object::configValue(String const& name, Json const& def) const {
680 if (auto orientation = currentOrientation())
681 return jsonMergeQueryDef(name, def, m_config->config, orientation->config, m_parameters.baseMap());
682 else
683 return jsonMergeQueryDef(name, def, m_config->config, m_parameters.baseMap());
684}
685
686ObjectConfigConstPtr Object::config() const {
687 return m_config;

Callers 2

updateShipsMethod · 0.45
shipWorldPromiseMethod · 0.45

Calls 1

jsonMergeQueryDefFunction · 0.85

Tested by

no test coverage detected