implement SurroundMap & update AreaMap2D

This commit is contained in:
MihailRis
2024-09-10 20:34:26 +03:00
parent dc79c150da
commit fdefbda49f
5 changed files with 100 additions and 22 deletions
+4 -1
View File
@@ -3,5 +3,8 @@
#include "world/generator/SurroundMap.hpp"
TEST(SurroundMap, InitTest) {
SurroundMap map(50, 8);
int8_t maxLevel = 2;
SurroundMap map(50, maxLevel);
map.completeAt(25, 25);
EXPECT_EQ(map.at(25, 25), maxLevel);
}