From 284af581e7b49f6ff2e60aefbe2b9814f51632b9 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Sat, 29 Dec 2018 15:16:14 -0500 Subject: [PATCH] Added world headers --- src/inc/world.cpp | 0 src/inc/world.hpp | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/inc/world.cpp create mode 100644 src/inc/world.hpp diff --git a/src/inc/world.cpp b/src/inc/world.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/inc/world.hpp b/src/inc/world.hpp new file mode 100644 index 0000000..6d59e1b --- /dev/null +++ b/src/inc/world.hpp @@ -0,0 +1,12 @@ +// A world struct hold information about a worlds dimensions and block data. +// It makes it easy and efficient to modify and read the properties of every +// voxel it contains. + +struct world +{ + voxel* voxels; + + unsigned int x_res; + unsigned int y_res; + unsigned int z_res; +}; \ No newline at end of file