From c72cdc23a44692f38d3e668f2874971a84842008 Mon Sep 17 00:00:00 2001 From: Migdyn Date: Wed, 26 Oct 2022 17:13:48 -0400 Subject: [PATCH] Updated mapblock code --- include/MapBlock.h | 4 ++++ main.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/include/MapBlock.h b/include/MapBlock.h index 93523ab..a394186 100644 --- a/include/MapBlock.h +++ b/include/MapBlock.h @@ -47,6 +47,10 @@ class NodeManager class BlockManager { + public: + NodeManager mapBlocks[8][8]; // 8 x 8 blocks + + private: }; diff --git a/main.cpp b/main.cpp index 0633836..657e0bb 100644 --- a/main.cpp +++ b/main.cpp @@ -9,6 +9,7 @@ #include NodeRenderer renderer; +BlockManager blockManager; NodeManager nodeManager(0, 0); NodeManager nodeManager1(1, 0); TextureHandler textureHandler;