Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
59
Json jsonFromVec2U(Vec2U const& v) {
60
return JsonArray{v[0], v[1]};
61
}
62
63
Vec2B jsonToVec2B(Json const& v) {
64
if (v.type() != Json::Type::Array || v.size() != 2)
Callers
5
toJson
Method · 0.85
store
Method · 0.85
store
Method · 0.85
windowChanged
Method · 0.85
GraphicsMenu
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected