Nolan Darilek
957dcca447
I'm finding that, for best results, I need to integrate everything into my map generation process. So for instance, object/monster spawns need to run as a filter so they can influence future steps. This associates a `Clone + Default` type with maps and makes it available to filters. `NoData` exists for the current behavior. All examples/tests/demos have been updated accordingly.
10 lines
234 B
Rust
10 lines
234 B
Rust
use rand::prelude::*;
|
|
use mapgen::*;
|
|
|
|
|
|
fn main() {
|
|
let mut rng = StdRng::seed_from_u64(907647352);
|
|
let gen = BspInterior::<NoData>::new();
|
|
let map = gen.modify_map(&mut rng, &Map::new(20, 10));
|
|
println!("{:}", &map);
|
|
} |