mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
implement SurroundMap & update AreaMap2D
This commit is contained in:
parent
dc79c150da
commit
fdefbda49f
5 changed files with 100 additions and 22 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue