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

Function jsonToIntList

source/core/StarJsonExtra.cpp:328–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328List<int> jsonToIntList(Json const& v) {
329 List<int> result;
330 for (auto const& entry : v.iterateArray())
331 result.push_back(entry.toInt());
332 return result;
333}
334
335List<Vec2I> jsonToVec2IList(Json const& v) {
336 List<Vec2I> result;

Callers 2

loadConfigMethod · 0.85
GraphicsMenuMethod · 0.85

Calls 3

iterateArrayMethod · 0.80
toIntMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected