Home › Enums › DomainTypes

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

DomainTypes

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

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.

7 of 12 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_DOMAIN NO_DOMAIN -1
DOMAIN_SEA DOMAIN_SEA 0
DOMAIN_AIR DOMAIN_AIR 1
DOMAIN_LAND DOMAIN_LAND 2
DOMAIN_IMMOBILE DOMAIN_IMMOBILE 3
DOMAIN_HOVER DOMAIN_HOVER 4
NUM_DOMAIN_TYPES NUM_DOMAIN_TYPES 5
not listed HASH_DOMAIN_LAND -1226720596
not listed HASH_DOMAIN_SEA 1681829283
not listed HASH_DOMAIN_AIR 1402459247
not listed HASH_DOMAIN_IMMOBILE -1069826769
not listed HASH_DOMAIN_HOVER 1153576155