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

Method toJson

source/game/StarSpawnTypeDatabase.cpp:88–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 : spawnTypes(std::move(spawnTypes)), monsterParameters(std::move(monsterParameters)) {}
87
88Json SpawnProfile::toJson() const {
89 return JsonObject{
90 {"spawnTypes", jsonFromStringSet(spawnTypes)},
91 {"monsterParameters", monsterParameters}
92 };
93}
94
95SpawnProfile constructSpawnProfile(Json const& config, uint64_t seed) {
96 SpawnProfile spawnProfile;

Callers

nothing calls this directly

Calls 1

jsonFromStringSetFunction · 0.85

Tested by

no test coverage detected