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

Method toObject

source/core/StarJson.cpp:232–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232JsonObject Json::toObject() const {
233 if (type() != Type::Object)
234 throw JsonException::format("Improper conversion to JsonObject from {}", typeName());
235 return *m_data.get<JsonObjectConstPtr>();
236}
237
238StringConstPtr Json::stringPtr() const {
239 if (type() != Type::String)

Callers 15

BehaviorDatabaseMethod · 0.80
DamageDatabaseMethod · 0.80
sensibleDefaultsMethod · 0.80
PlantDatabaseMethod · 0.80
buildBushVariantMethod · 0.80
configurationMethod · 0.80
particlesFromDefinitionFunction · 0.80
questParamsFromJsonFunction · 0.80
questParamsDiskLoadFunction · 0.80
generateNpcVariantMethod · 0.80
mergeConfigValuesMethod · 0.80
parametersMethod · 0.80

Calls 2

formatFunction · 0.70
typeFunction · 0.50

Tested by 1

TESTFunction · 0.64