mapgen visualisation

This commit is contained in:
Llywelwyn 2023-07-15 13:38:51 +01:00
parent 011b26088e
commit 0728a1db41
6 changed files with 144 additions and 81 deletions

View file

@ -1,4 +1,4 @@
use super::{spawner, Map, Position, Rect, TileType};
use super::{spawner, Map, Position, Rect, TileType, SHOW_MAPGEN};
mod simple_map;
use simple_map::SimpleMapBuilder;
mod common;
@ -11,6 +11,8 @@ pub trait MapBuilder {
fn spawn_entities(&mut self, ecs: &mut World);
fn get_map(&mut self) -> Map;
fn get_starting_pos(&mut self) -> Position;
fn get_snapshot_history(&self) -> Vec<Map>;
fn take_snapshot(&mut self);
}
pub fn random_builder(new_depth: i32) -> Box<dyn MapBuilder> {