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

Method createPlant

source/game/StarPlantDatabase.cpp:341–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341PlantPtr PlantDatabase::createPlant(TreeVariant const& treeVariant, uint64_t seed) const {
342 try {
343 return make_shared<Plant>(treeVariant, seed);
344 } catch (std::exception const& e) {
345 throw PlantDatabaseException(strf("Error constructing plant from tree variant stem: {} foliage: {}", treeVariant.stemName, treeVariant.foliageName), e);
346 }
347}
348
349PlantPtr PlantDatabase::createPlant(GrassVariant const& grassVariant, uint64_t seed) const {
350 try {

Callers 5

placeBiomeTreeMethod · 0.80
placeBiomeItemsMethod · 0.80
prepareSectorMethod · 0.80
reapplyBiomeMethod · 0.80
enterStageMethod · 0.80

Calls 1

strfFunction · 0.85

Tested by

no test coverage detected