|
@@ -32,6 +32,7 @@ namespace KairoEngine.TerrainEngine
|
|
|
[BoxGroup("Configurations")] public bool showDebug = false;
|
|
|
|
|
|
[InlineProperty, HideLabel, BoxGroup("Marching Cubes")] public MarchingCubes4 marchingCubes = new();
|
|
|
+ [BoxGroup("Map Data Generator")] public bool useRandomSeed = false;
|
|
|
[BoxGroup("Map Data Generator"), InlineProperty, HideLabel, SerializeReference] public IMapDataGenerator mapDataGenerator;
|
|
|
|
|
|
[ShowIf("@showChunkData"), BoxGroup("Chunk System"), InlineProperty, HideLabel] public ChunkSystem<BlockBase> chunkSystem;
|
|
@@ -83,6 +84,7 @@ namespace KairoEngine.TerrainEngine
|
|
|
{
|
|
|
chunkSystem = new ChunkSystem<BlockBase>(chunkSize,voxelSize, true);
|
|
|
initialized = true;
|
|
|
+ if(useRandomSeed) mapDataGenerator.SetSeed(Random.Range(0, 100000));
|
|
|
}
|
|
|
|
|
|
public bool IsInitialized() => initialized;
|