Home › Enums › FlowDirectionTypes

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

FlowDirectionTypes

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

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.

14 of 14 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_FLOWDIRECTION NO_FLOWDIRECTION -1
FLOWDIRECTION_NORTH FLOWDIRECTION_NORTH 0
FLOWDIRECTION_NORTHEAST FLOWDIRECTION_NORTHEAST 1
FLOWDIRECTION_SOUTHEAST FLOWDIRECTION_SOUTHEAST 2
FLOWDIRECTION_SOUTH FLOWDIRECTION_SOUTH 3
FLOWDIRECTION_SOUTHWEST FLOWDIRECTION_SOUTHWEST 4
FLOWDIRECTION_NORTHWEST FLOWDIRECTION_NORTHWEST 5
NUM_FLOWDIRECTION_TYPES NUM_FLOWDIRECTION_TYPES 6
FLOWDIRECTION_NORTH_MASK FLOWDIRECTION_NORTH_MASK 1
FLOWDIRECTION_SOUTH_MASK FLOWDIRECTION_SOUTH_MASK 2
FLOWDIRECTION_SOUTHEAST_MASK FLOWDIRECTION_SOUTHEAST_MASK 4
FLOWDIRECTION_NORTHWEST_MASK FLOWDIRECTION_NORTHWEST_MASK 8
FLOWDIRECTION_SOUTHWEST_MASK FLOWDIRECTION_SOUTHWEST_MASK 16
FLOWDIRECTION_NORTHEAST_MASK FLOWDIRECTION_NORTHEAST_MASK 32