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

Function jsonToVec4BList

source/core/StarJsonExtra.cpp:356–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356List<Vec4B> jsonToVec4BList(Json const& v) {
357 List<Vec4B> result;
358 for (auto const& entry : v.iterateArray())
359 result.append(jsonToVec4B(entry));
360 return result;
361}
362
363List<Color> jsonToColorList(Json const& v) {
364 List<Color> result;

Callers

nothing calls this directly

Calls 3

jsonToVec4BFunction · 0.85
iterateArrayMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected