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

Function jsonFromRectI

source/core/StarJsonExtra.cpp:185–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185Json jsonFromRectI(RectI const& rect) {
186 return JsonArray{rect.xMin(), rect.yMin(), rect.xMax(), rect.yMax()};
187}
188
189RectU jsonToRectU(Json const& v) {
190 if (v.type() != Json::Type::Array)

Callers 2

TMXObjectMethod · 0.85
storeMethod · 0.85

Calls 4

xMinMethod · 0.80
yMinMethod · 0.80
xMaxMethod · 0.80
yMaxMethod · 0.80

Tested by

no test coverage detected