Worlds now hold information about their growing plants
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
// A world struct holds information about a world's dimensions and block data.
|
||||
// It makes it easy and efficient to modify and read the properties of every
|
||||
@@ -12,6 +13,10 @@ struct world
|
||||
unsigned int y_res;
|
||||
unsigned int z_res;
|
||||
|
||||
// A list of plants that are growing.
|
||||
|
||||
std::vector<growing_plant> growing_plants;
|
||||
|
||||
// Get the voxel at the specified coordinates.
|
||||
|
||||
inline voxel get(unsigned int x, unsigned int y, unsigned int z)
|
||||
|
||||
Reference in New Issue
Block a user