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

Function jsonFromVec2U

source/core/StarJsonExtra.cpp:59–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59Json jsonFromVec2U(Vec2U const& v) {
60 return JsonArray{v[0], v[1]};
61}
62
63Vec2B jsonToVec2B(Json const& v) {
64 if (v.type() != Json::Type::Array || v.size() != 2)

Callers 5

toJsonMethod · 0.85
storeMethod · 0.85
storeMethod · 0.85
windowChangedMethod · 0.85
GraphicsMenuMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected