mapgen visualisation
This commit is contained in:
parent
011b26088e
commit
0728a1db41
6 changed files with 144 additions and 81 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue