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

Method toJson

source/game/StarPlayerUniverseMap.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37template <typename T>
38Json Bookmark<T>::toJson() const {
39 JsonObject result;
40 result["target"] = jsonFromBookmarkTarget<T>(target);
41 result["targetName"] = targetName;
42 result["bookmarkName"] = bookmarkName;
43 result["icon"] = icon;
44 return result;
45}
46
47PlayerUniverseMap::PlayerUniverseMap(Json const& json) {
48 if (auto maps = json.optObject()) {

Callers 1

Calls 6

jsonFromVec3IFunction · 0.85
hexMethod · 0.80
setMethod · 0.45
appendMethod · 0.45
transformedMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected