28 lines
568 B
C++
28 lines
568 B
C++
#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
|