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

Method PlayerUniverseMap

source/game/StarPlayerUniverseMap.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47PlayerUniverseMap::PlayerUniverseMap(Json const& json) {
48 if (auto maps = json.optObject()) {
49 for (auto p : *maps)
50 m_universeMaps.set(Uuid(p.first), UniverseMap::fromJson(p.second));
51 }
52}
53
54Json PlayerUniverseMap::toJson() const {
55 JsonObject json;

Callers

nothing calls this directly

Calls 3

UuidClass · 0.85
optObjectMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected