You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
568 B
28 lines
568 B
#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
|
|
|