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

Method fetchJson

source/base/StarAssets.cpp:485–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485Json Assets::fetchJson(Json const& v, String const& dir) const {
486 if (v.isType(Json::Type::String))
487 return Assets::json(AssetPath::relativeTo(dir, v.toString()));
488 else
489 return v;
490}
491
492void Assets::queueJsons(StringList const& paths) const {
493 queueAssets(paths.transformed([](String const& path) {

Callers 15

VehicleMethod · 0.80
biomeWeathersMethod · 0.80
AnimationMethod · 0.80
PlayerMethod · 0.80
WorldStructureMethod · 0.80
produceMonsterMethod · 0.80
MaterialDatabaseMethod · 0.80
parseTouchDamageMethod · 0.80
readConfigMethod · 0.80
ActiveItemMethod · 0.80
CraftingPaneMethod · 0.80
TeleportDialogMethod · 0.80

Calls 2

isTypeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected