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

Method getProperty

source/game/StarWorldClient.cpp:2174–2179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2172}
2173
2174Json WorldClient::getProperty(String const& propertyName, Json const& def) const {
2175 if (!inWorld())
2176 return {};
2177
2178 return m_worldProperties.value(propertyName, def);
2179}
2180
2181void WorldClient::setProperty(String const& propertyName, Json const& property) {
2182 if (!inWorld())

Callers 3

updateShipsMethod · 0.45
shipWorldPromiseMethod · 0.45
updateMethod · 0.45

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected