resource load states

use biome painter
This commit is contained in:
2024-04-23 21:39:35 -04:00
parent d3b5893294
commit 7c770af89c
9 changed files with 85 additions and 39 deletions

View File

@@ -20,6 +20,15 @@ pub mod prelude {
pub layers: Vec<GeneratorLayer>,
}
impl GenerationConfig {
pub fn get_total_width(&self) -> usize {
return self.size.x as usize * Chunk::SIZE;
}
pub fn get_total_height(&self) -> usize {
return self.size.y as usize * Chunk::SIZE;
}
}
pub struct GeneratorLayer {
pub strength: f64,
pub min_value: f64,