roguelike-game/src/map_builders/mod.rs

15 lines
244 B
Rust
Raw Normal View History

mod common;
mod simple_map;
use crate::Map;
use common::*;
use simple_map::SimpleMapBuilder;
trait MapBuilder {
fn build(new_depth: i32) -> Map;
}
pub fn build_random_map(new_depth: i32) -> Map {
SimpleMapBuilder::build(new_depth)
}