Home › Enums and constants

Enums and constants

Lua constant tables (available out of the box)

Names the game exposes to Lua as tables such as PlayerOperations.

Enum Members Kind Hashed
PlayerOperations 40 lua-table yes
PlayerOperations.Parameters 43 lua-table yes
UnitOperationTypes 75 lua-table no
UnitCommandTypes 47 lua-table no
CityOperationTypes 2 lua-table no
CityCommandTypes 10 lua-table no
DealProposalAction 13 lua-table-companion no
DealValidationResult 3 lua-table-companion no
QueueInsertMode 3 lua-table-companion no
BoostSources 11 lua-table-companion no
AdjacencyBonusTypes 11 lua-table-companion no
HeroDiscoverySources 8 lua-table-companion no
ComponentType 93 lua-table-companion no
SlotStatus 7 lua-table-companion no
TradeItemDesirability 5 lua-table-companion no
DiplomaticTrustTypes 8 lua-table-companion no
YieldTypes 14 lua-table-companion no
IdentityConversionOutcome 3 lua-table-companion no
DomainTypes 12 lua-table-companion no
PlayerComponentTypes 93 lua-table-companion no
DirectionTypes 15 lua-table-companion no
CloudNotifyTypes 4 lua-table-companion no
RevealedState 6 lua-table-companion no
DiplomaticThreatTypes 6 lua-table-companion no
FlowDirectionTypes 14 lua-table-companion no
Lua events 256 events with parameters no

Engine ids (not scriptable)

Identifiers used inside the engine. Lua has no table for them; they are listed to decode hash values seen in code.

Enum Members Kind Hashed
Events 352 engine-event-id yes