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

Function jsonToStringList

source/core/StarJsonExtra.cpp:293–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293StringList jsonToStringList(Json const& v) {
294 StringList result;
295 for (auto const& entry : v.iterateArray())
296 result.push_back(entry.toString());
297 return result;
298}
299
300Json jsonFromStringList(List<String> const& v) {
301 JsonArray result;

Callers 15

AmbientTrackGroupMethod · 0.85
initMethod · 0.85
GrassVariantMethod · 0.85
BushVariantMethod · 0.85
buildGrassVariantMethod · 0.85
buildBushVariantMethod · 0.85
scanForAssetSourcesMethod · 0.85
particlesMethod · 0.85
generateNpcVariantMethod · 0.85
readNpcVariantMethod · 0.85

Calls 3

iterateArrayMethod · 0.80
push_backMethod · 0.45
toStringMethod · 0.45

Tested by 1

SpeciesDefinitionMethod · 0.68