Add more command-line options for generating caves

Add all the necessary params to the CLI options for generating caves
This commit is contained in:
Griffin Smith 2019-07-22 20:20:18 -04:00
parent d001b0a017
commit 68e8ad8a0e
4 changed files with 106 additions and 25 deletions

View file

@ -24,6 +24,12 @@ pub struct Dimensions {
pub const ZERO_DIMENSIONS: Dimensions = Dimensions { w: 0, h: 0 };
pub const UNIT_DIMENSIONS: Dimensions = Dimensions { w: 1, h: 1 };
impl Default for Dimensions {
fn default() -> Self {
Dimensions { w: 80, h: 20 }
}
}
impl ops::Sub<Dimensions> for Dimensions {
type Output = Dimensions;
fn sub(self, dims: Dimensions) -> Dimensions {