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

Function jsonToVec2UList

source/core/StarJsonExtra.cpp:342–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342List<Vec2U> jsonToVec2UList(Json const& v) {
343 List<Vec2U> result;
344 for (auto const& entry : v.iterateArray())
345 result.append(jsonToVec2U(entry));
346 return result;
347}
348
349List<Vec2F> jsonToVec2FList(Json const& v) {
350 List<Vec2F> result;

Callers 1

GraphicsMenuMethod · 0.85

Calls 3

jsonToVec2UFunction · 0.85
iterateArrayMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected