#include <World.hpp>
◆ ChunkGenList
◆ WorldGenerator()
World::WorldGenerator::WorldGenerator |
( |
World & |
world | ) |
|
- Warning
- the zone sizes must be in the same order as the genLevel enum
-
the zone sizes must be multiples of the zone sizes of the previous gen level (ex 5x5 and 10x10)
◆ ~WorldGenerator()
World::WorldGenerator::~WorldGenerator |
( |
| ) |
|
◆ getGenerationGraph()
get the generation info for the given gen level and chunk position
- Parameters
-
gen_level | |
old_level | |
chunkPos3D | |
- Returns
- a genInfo struct
will do a generation pass to the chunks
- Parameters
-
info | the struct returned by the getGenInfo function |
chunkGenGrid | the chunks to generate |
- Warning
- the chunks MUST be locked before calling and unlocked after
creates a task graph that when runned will generate every chunk in the list
- Parameters
-
- Returns
- task::TaskGraph&&
The documentation for this class was generated from the following files: