6 changed files with 76 additions and 3 deletions
@ -0,0 +1,28 @@
|
||||
#include "engine/direction.hpp" |
||||
|
||||
namespace devilution { |
||||
|
||||
string_view DirectionToString(Direction direction) |
||||
{ |
||||
switch (direction) { |
||||
case Direction::South: |
||||
return "South"; |
||||
case Direction::SouthWest: |
||||
return "SouthWest"; |
||||
case Direction::West: |
||||
return "West"; |
||||
case Direction::NorthWest: |
||||
return "NorthWest"; |
||||
case Direction::North: |
||||
return "North"; |
||||
case Direction::NorthEast: |
||||
return "NorthEast"; |
||||
case Direction::East: |
||||
return "East"; |
||||
case Direction::SouthEast: |
||||
return "SouthEast"; |
||||
} |
||||
return ""; |
||||
} |
||||
|
||||
} // namespace devilution
|
||||
Loading…
Reference in new issue