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

Function jsonFromDirectivesList

source/core/StarJsonExtra.cpp:377–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377Json jsonFromDirectivesList(List<Directives> const& v) {
378 JsonArray result;
379 for (auto& e : v) {
380 if (e)
381 result.push_back(*e.stringPtr());
382 }
383 return result;
384}
385
386Json weightedChoiceFromJson(Json const& source, Json const& default_) {
387 if (source.isNull())

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45
stringPtrMethod · 0.45

Tested by

no test coverage detected