Skip to content

Commit

Permalink
Add support for the new map, Redwoods
Browse files Browse the repository at this point in the history
  • Loading branch information
adamransom committed May 4, 2020
1 parent 3a03a8c commit 4edeae2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub enum Map {
OldVeranda,
Panopticon,
Pub,
Redwoods,
Teien,
Terrace,
Veranda,
Expand Down Expand Up @@ -61,6 +62,7 @@ impl fmt::Display for Map {
Map::OldVeranda => "Old Veranda",
Map::Panopticon => "Panopticon",
Map::Pub => "Pub",
Map::Redwoods => "Redwoods",
Map::Teien => "Teien",
Map::Terrace => "Terrace",
Map::Veranda => "Veranda",
Expand Down Expand Up @@ -92,6 +94,7 @@ impl From<u32> for Map {
0xa8be_a091 => Map::OldVeranda,
0x3695_f583 => Map::Panopticon,
0x3b85_fff3 => Map::Pub,
0x35ac_5135 => Map::Redwoods,
0x79df_a0cf => Map::Teien,
0x9032_ce22 => Map::Terrace,
0x6f81_a558 => Map::Veranda,
Expand Down Expand Up @@ -126,6 +129,7 @@ impl<'a> TryFrom<&'a str> for Map {
"oldveranda" => Map::OldVeranda,
"panopticon" | "panop" => Map::Panopticon,
"pub" => Map::Pub,
"redwoods" => Map::Redwoods,
"teien" => Map::Teien,
"terrace" => Map::Terrace,
"veranda" => Map::Veranda,
Expand Down

0 comments on commit 4edeae2

Please sign in to comment.