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

Method json

source/base/StarAssets.cpp:478–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478Json Assets::json(String const& path) const {
479 auto components = AssetPath::split(path);
480 validatePath(components, true, false);
481
482 return as<JsonData>(getAsset(AssetId{AssetType::Json, std::move(components)}))->json;
483}
484
485Json Assets::fetchJson(Json const& v, String const& dir) const {
486 if (v.isType(Json::Type::String))

Callers 15

SpawnerMethod · 0.80
BehaviorDatabaseMethod · 0.80
HumanoidTimingMethod · 0.80
makeDummyMethod · 0.80
RadioMessageDatabaseMethod · 0.80
createRadioMessageMethod · 0.80
generateNameMethod · 0.80
TileDamageParametersMethod · 0.80
constructSpawnProfileFunction · 0.80
SpawnTypeDatabaseMethod · 0.80
buildAsteroidsLayoutMethod · 0.80

Calls 1

validatePathFunction · 0.85

Tested by 3

SpeciesDatabaseMethod · 0.64
humanoidConfigMethod · 0.64
TESTFunction · 0.64