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

Function jsonToPolyF

source/core/StarJsonExtra.cpp:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251PolyF jsonToPolyF(Json const& v) {
252 PolyF poly;
253
254 for (Json const& vertex : v.iterateArray())
255 poly.add(jsonToVec2F(vertex));
256
257 return fixInsideOutPoly(poly);
258}
259
260PolyI jsonToPolyI(Json const& v) {
261 PolyI poly;

Callers 9

DrawableMethod · 0.85
WorldTemplateMethod · 0.85
readCommonParametersMethod · 0.85
fromJsonMethod · 0.85
DamageSourceMethod · 0.85
readConfigMethod · 0.85
partPolyMethod · 0.85
fromJsonMethod · 0.85

Calls 4

jsonToVec2FFunction · 0.85
fixInsideOutPolyFunction · 0.85
iterateArrayMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected