Home › Enums › DirectionTypes

Available out of the box. Usable from Lua in the unmodified game.

DirectionTypes

Lua constant table DirectionTypes. Engine enum: GameCore::DirectionTypes.

The table name and the Lua key column come from the Civilization VI Modding Companion (ChimpanG, expanded and maintained by WildW). The engine names and values come from the game library's debug info. Every member the Companion lists has the same value in the engine enum, which is how the two were matched.

8 of 15 engine members are listed by the Companion. The others exist in the engine, but we do not know whether Lua exposes them, so use the Lua key column as the safe set.

Lua key Engine name Value
NO_DIRECTION NO_DIRECTION -1
DIRECTION_NORTHEAST DIRECTION_NORTHEAST 0
DIRECTION_EAST DIRECTION_EAST 1
DIRECTION_SOUTHEAST DIRECTION_SOUTHEAST 2
DIRECTION_SOUTHWEST DIRECTION_SOUTHWEST 3
DIRECTION_WEST DIRECTION_WEST 4
DIRECTION_NORTHWEST DIRECTION_NORTHWEST 5
NUM_DIRECTION_TYPES NUM_DIRECTION_TYPES 6
not listed DIRECTION_NORTHEAST_MASK 1
not listed DIRECTION_EAST_MASK 2
not listed DIRECTION_SOUTHEAST_MASK 4
not listed DIRECTION_SOUTHWEST_MASK 8
not listed DIRECTION_WEST_MASK 16
not listed DIRECTION_NORTHWEST_MASK 32
not listed DIRECTION_ALL_MASK 63