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

Function jsonFromVec3I

source/core/StarJsonExtra.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99Json jsonFromVec3I(Vec3I const& v) {
100 JsonArray result;
101 result.append(v[0]);
102 result.append(v[1]);
103 result.append(v[2]);
104 return result;
105}
106
107Vec3B jsonToVec3B(Json const& v) {
108 if (v.type() != Json::Type::Array || v.size() != 3)

Callers 7

toJsonMethod · 0.85
toJsonMethod · 0.85
diskStoreMethod · 0.85
makeQuestCallbacksMethod · 0.85
toJsonMethod · 0.85
diskStoreMethod · 0.85
makePlayerCallbacksMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected