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

Method loadSelector

source/game/StarTerrainDatabase.cpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117TerrainSelectorConstPtr TerrainDatabase::loadSelector(Json const& store) const {
118 if (store.isNull())
119 return {};
120 return createSelectorType(store.getString("type"), store.get("config"),
121 TerrainSelectorParameters(store.get("parameters")));
122}
123
124TerrainSelectorConstPtr TerrainDatabase::createSelectorType(String const& type, Json const& config, TerrainSelectorParameters const& parameters) const {
125 if (type == WormCaveSelector::Name)

Callers 1

WorldLayoutMethod · 0.80

Calls 4

getStringMethod · 0.80
isNullMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected