| 339 | } |
| 340 | |
| 341 | PlantPtr 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 | |
| 349 | PlantPtr PlantDatabase::createPlant(GrassVariant const& grassVariant, uint64_t seed) const { |
| 350 | try { |
no test coverage detected