mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-20 10:56:50 +01:00
12 lines
261 B
C++
12 lines
261 B
C++
#ifndef FAST_WFC_DIRECTION_HPP_
|
|
#define FAST_WFC_DIRECTION_HPP_
|
|
|
|
constexpr int directions_x[4] = { 0, -1, 1, 0 };
|
|
constexpr int directions_y[4] = { -1, 0, 0, 1 };
|
|
|
|
constexpr unsigned get_opposite_direction(unsigned direction) {
|
|
return 3 - direction;
|
|
}
|
|
|
|
#endif
|