EndTurnBlockingType (Civ5 Type)
This page is a part of the Lua and UI Reference (Civ5).
The EndTurnBlockingType pseudo-type is actually a regular integer. Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki!
|
Lua: the EndTurnBlockingTypes enumeration
Firaxis provides a Lua enumeration named EndTurnBlockingTypes
. This is just a regular global table. Its keys are the constants' names and the pairs the corresponding values.
Below are the values found in this enumeration.
Key
Value
"NO_ENDTURN_BLOCKING_TYPE"
-1
"ENDTURN_BLOCKING_POLICY"
0
"ENDTURN_BLOCKING_RESEARCH"
1
"ENDTURN_BLOCKING_PRODUCTION"
2
"ENDTURN_BLOCKING_UNITS"
3
"ENDTURN_BLOCKING_DIPLO_VOTE"
4
"ENDTURN_BLOCKING_MINOR_QUEST"
5
"ENDTURN_BLOCKING_FREE_TECH"
6
"ENDTURN_BLOCKING_STACKED_UNITS"
7
"ENDTURN_BLOCKING_UNIT_NEEDS_ORDERS"
8
"ENDTURN_BLOCKING_UNIT_PROMOTION"
9
"ENDTURN_BLOCKING_CITY_RANGE_ATTACK"
10
"ENDTURN_BLOCKING_FREE_POLICY"
11
"ENDTURN_BLOCKING_FREE_ITEMS"
12
"ENDTURN_BLOCKING_FOUND_PANTHEON"
13
"ENDTURN_BLOCKING_FOUND_RELIGION"
14
"ENDTURN_BLOCKING_ENHANCE_RELIGION"
15
"ENDTURN_BLOCKING_STEAL_TECH"
16
"ENDTURN_BLOCKING_MAYA_LONG_COUNT"
17
"ENDTURN_BLOCKING_FAITH_GREAT_PERSON"
18
"NUM_ENDTURN_BLOCKING_TYPES"
19
Examples
Here is how to use the LUA enumeration to retrieve the ID from the type. Those examples will return and assign the integer value 0.
local id = EndTurnBlockingTypes.ENDTURN_BLOCKING_POLICY
local id = EndTurnBlockingTypes["ENDTURN_BLOCKING_POLICY"]
Used by
|
Events.EndTurnBlockingChanged(EndTurnBlockingType prevEndTurnBlockingType, EndTurnBlockingType newEndTurnBlockingType)
|
|
Image:RegisterCallback(MouseType arg0, (void func(EndTurnBlockingType Id)) OnEditNameClick)
|
EndTurnBlockingType
|
Player:GetEndTurnBlockingNotificationIndex()
|
EndTurnBlockingType
|
Player:GetEndTurnBlockingType()
|
EndTurnBlockingType
|
Player:GetNotificationIndex(int i)
|
|
Stack:RegisterCallback(MouseType arg0, (void func(EndTurnBlockingType Id)) GenericLeftClick)
|
|
UI.RemoveNotification(EndTurnBlockingType blockingNotificationIndex)
|
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.