Worlds now hold information about their growing plants

This commit is contained in:
CobaltXII
2019-01-04 16:04:20 -05:00
parent f8490d5873
commit d34152b488

View File

@@ -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)