roguelike-game/src/map_builders/mod.rs

15 lines
280 B
Rust
Raw Normal View History

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