diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-23T00·20-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-23T00·20-0400 |
commit | 68e8ad8a0e6a5ac38b34658f03807ade603a687c (patch) | |
tree | 80059db1e872ebbd1b7c5bbf04efc58654d69673 /src/types/mod.rs | |
parent | d001b0a017cf4d1a614e636059db257fa75dcc9d (diff) |
Add more command-line options for generating caves
Add all the necessary params to the CLI options for generating caves
Diffstat (limited to 'src/types/mod.rs')
-rw-r--r-- | src/types/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/types/mod.rs b/src/types/mod.rs index 1e86fb369e86..e656048e873c 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -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 { |