128 lines
2.3 KiB
Rust
128 lines
2.3 KiB
Rust
#[allow(dead_code)]
|
|
#[derive(PartialEq, Copy, Clone)]
|
|
pub enum HorizontalPlacement {
|
|
Left,
|
|
Center,
|
|
Right,
|
|
}
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(PartialEq, Copy, Clone)]
|
|
pub enum VerticalPlacement {
|
|
Top,
|
|
Center,
|
|
Bottom,
|
|
}
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(PartialEq, Copy, Clone)]
|
|
pub struct PrefabSection {
|
|
pub template: &'static str,
|
|
pub width: usize,
|
|
pub height: usize,
|
|
pub placement: (HorizontalPlacement, VerticalPlacement),
|
|
}
|
|
|
|
#[allow(dead_code)]
|
|
pub const UNDERGROUND_FORT: PrefabSection = PrefabSection {
|
|
template: RIGHT_FORT,
|
|
width: 15,
|
|
height: 43,
|
|
placement: (HorizontalPlacement::Right, VerticalPlacement::Top),
|
|
};
|
|
|
|
#[allow(dead_code)]
|
|
// The padding needs to be here!
|
|
const RIGHT_FORT: &str = "
|
|
#
|
|
#######
|
|
# #
|
|
# #######
|
|
# g #
|
|
# #######
|
|
# #
|
|
### ###
|
|
# #
|
|
# #
|
|
# ##
|
|
^
|
|
^
|
|
# ##
|
|
# #
|
|
# #
|
|
# #
|
|
# #
|
|
### ###
|
|
# #
|
|
# #
|
|
# g #
|
|
# #
|
|
# #
|
|
### ###
|
|
# #
|
|
# #
|
|
# #
|
|
# ##
|
|
^
|
|
^
|
|
# ##
|
|
# #
|
|
# #
|
|
# #
|
|
### ###
|
|
# #
|
|
# #######
|
|
# g #
|
|
# #######
|
|
# #
|
|
#######
|
|
#
|
|
";
|
|
|
|
#[allow(dead_code)]
|
|
pub const ORC_CAMP: PrefabSection = PrefabSection {
|
|
template: ORC_CAMP_TXT,
|
|
width: 12,
|
|
height: 12,
|
|
placement: (HorizontalPlacement::Center, VerticalPlacement::Center),
|
|
};
|
|
|
|
#[allow(dead_code)]
|
|
const ORC_CAMP_TXT: &str = "
|
|
|
|
≈≈≈≈o≈≈≈≈≈
|
|
≈☼ ☼≈
|
|
≈ g ≈
|
|
≈ ≈
|
|
≈ g ≈
|
|
o O o
|
|
≈ ≈
|
|
≈ g ≈
|
|
≈ g ≈
|
|
≈☼ ☼≈
|
|
≈≈≈≈o≈≈≈≈≈
|
|
|
|
";
|
|
|
|
#[allow(dead_code)]
|
|
pub const DROW_ENTRY: PrefabSection = PrefabSection {
|
|
template: DROW_ENTRY_TXT,
|
|
width: 12,
|
|
height: 10,
|
|
placement: (HorizontalPlacement::Center, VerticalPlacement::Center),
|
|
};
|
|
|
|
#[allow(dead_code)]
|
|
const DROW_ENTRY_TXT: &str = "
|
|
|
|
##########
|
|
# #
|
|
# > #
|
|
# #
|
|
#e #
|
|
e #
|
|
#e #
|
|
##########
|
|
|
|
";
|