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

Method toArray

source/core/StarJson.cpp:226–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226JsonArray Json::toArray() const {
227 if (type() != Type::Array)
228 throw JsonException::format("Improper conversion to JsonArray from {}", typeName());
229 return *m_data.get<JsonArrayConstPtr>();
230}
231
232JsonObject Json::toObject() const {
233 if (type() != Type::Object)

Callers 15

MaxSpawnCountRuleMethod · 0.80
DoNotCombineWithRuleMethod · 0.80
loadConfigMethod · 0.80
particlesMethod · 0.80
diskLoadMethod · 0.80
generateNameMethod · 0.80
processRuleMethod · 0.80
buildAsteroidsLayoutMethod · 0.80
readTenantMethod · 0.80
buildBushVariantMethod · 0.80

Calls 2

formatFunction · 0.70
typeFunction · 0.50

Tested by 2

InspectionToolMethod · 0.64
TESTFunction · 0.64