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:
parent
d001b0a017
commit
68e8ad8a0e
4 changed files with 106 additions and 25 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue