preparation for improved biome generation

This commit is contained in:
2024-07-02 22:56:11 -04:00
parent b175a2f1fd
commit fa0ae8509f
5 changed files with 92 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
use bevy::prelude::*;
use bevy_inspector_egui::InspectorOptions;
use serde::{Deserialize, Serialize};
use super::chunk::Chunk;
@@ -9,6 +10,7 @@ pub struct GenerationConfig {
pub noise_scale: f64,
pub sea_level: f64,
pub border_size: f32,
pub biome_blend: usize,
pub size: UVec2,
pub layers: Vec<GeneratorLayer>,
}
@@ -22,7 +24,7 @@ impl GenerationConfig {
}
}
#[derive(Reflect, InspectorOptions)]
#[derive(Reflect, InspectorOptions, Serialize, Deserialize, Debug)]
pub struct GeneratorLayer {
pub strength: f64,
pub min_value: f64,