2021-12-13 15:22:59 -05:00
|
|
|
#[allow(dead_code)]
|
|
|
|
#[derive(PartialEq, Copy, Clone)]
|
|
|
|
pub struct PrefabRoom {
|
|
|
|
pub template: &'static str,
|
|
|
|
pub width: usize,
|
|
|
|
pub height: usize,
|
|
|
|
pub first_depth: i32,
|
|
|
|
pub last_depth: i32,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
pub const TOTALLY_NOT_A_TRAP: PrefabRoom = PrefabRoom {
|
|
|
|
template: TOTALLY_NOT_A_TRAP_MAP,
|
|
|
|
width: 5,
|
|
|
|
height: 5,
|
|
|
|
first_depth: 0,
|
|
|
|
last_depth: 100,
|
|
|
|
};
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
const TOTALLY_NOT_A_TRAP_MAP: &str = "
|
|
|
|
|
|
|
|
^^^
|
|
|
|
^!^
|
|
|
|
^^^
|
|
|
|
|
|
|
|
";
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
pub const SILLY_SMILE: PrefabRoom = PrefabRoom {
|
|
|
|
template: SILLY_SMILE_MAP,
|
|
|
|
width: 6,
|
|
|
|
height: 6,
|
|
|
|
first_depth: 0,
|
|
|
|
last_depth: 100,
|
|
|
|
};
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
const SILLY_SMILE_MAP: &str = "
|
|
|
|
|
|
|
|
^ ^
|
2021-12-17 14:21:26 -05:00
|
|
|
##
|
2021-12-13 15:22:59 -05:00
|
|
|
|
2021-12-17 14:21:26 -05:00
|
|
|
####
|
2021-12-13 15:22:59 -05:00
|
|
|
|
|
|
|
";
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
pub const CHECKERBOARD: PrefabRoom = PrefabRoom {
|
|
|
|
template: CHECKERBOARD_MAP,
|
|
|
|
width: 6,
|
|
|
|
height: 6,
|
|
|
|
first_depth: 0,
|
|
|
|
last_depth: 100,
|
|
|
|
};
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
const CHECKERBOARD_MAP: &str = "
|
|
|
|
|
2021-12-17 14:21:26 -05:00
|
|
|
#^#
|
2021-12-13 15:22:59 -05:00
|
|
|
g#%#
|
|
|
|
#!#
|
|
|
|
^# #
|
|
|
|
|
|
|
|
";
|