mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
advanced plants test
This commit is contained in:
parent
5bdabaea42
commit
a81555b979
3 changed files with 11 additions and 2 deletions
|
|
@ -41,6 +41,7 @@ struct BiomeParameter {
|
|||
float weight;
|
||||
};
|
||||
|
||||
/// @brief Plant is a single-block structure randomly generating in world
|
||||
struct PlantEntry {
|
||||
/// @brief Plant block id
|
||||
std::string block;
|
||||
|
|
@ -50,6 +51,10 @@ struct PlantEntry {
|
|||
struct {
|
||||
blockid_t id;
|
||||
} rt;
|
||||
|
||||
bool operator>(const PlantEntry& other) const {
|
||||
return weight > other.weight;
|
||||
}
|
||||
};
|
||||
|
||||
struct BiomePlants {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue