City.GetID (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of City. This is an instance method, invoke it with a colon. |
Usage
CityID City:GetID()
Returned Value
- No description available.
Source code samples
Redundant occurences have been removed.
CityBannerManager.lua
UI/InGame/CityBannerManager.lua
0392
|
controls.CityBannerProductionButton:SetVoids( city:GetID(), nil ); |
1252
|
OnCityCreated( ToHexFromGrid( Vector2( city:GetX(), city:GetY() ) ), player:GetID(), city:GetID() ); |
CityList.lua
UI/InGame/CityList.lua
0426
|
instance.ProdButton:SetVoids( city:GetID(), nil ); |
CityView.lua
UI/InGame/CityView/CityView.lua
0229
|
Network.SendDoTask(pCity:GetID(), TaskTypes.TASK_CHANGE_WORKING_PLOT, 0, -1, false, bAlt, bShift, bCtrl); |
0274
|
Data1 = UI.GetHeadSelectedCity():GetID(), |
1670
|
Network.SendUpdateCityCitizens(pCity:GetID()); |
1685
|
Network.SendDoTask(pCity:GetID(), TaskTypes.TASK_CHANGE_WORKING_PLOT, iPlotIndex, -1, false, bAlt, bShift, bCtrl); |
1698
|
Network.SendCityBuyPlot(pHeadSelectedCity:GetID(), plotX, plotY); |
1769
|
elseif ( plot:GetWorkingCity():GetID() ~= pCity:GetID() and plot:GetWorkingCity():IsWorkingPlot( plot ) ) then |
1805
|
elseif ( pCity:CanWork( plot ) or plot:GetWorkingCity():GetID() ~= pCity:GetID() ) then |
1894
|
local cityID = city:GetID(); |
2171
|
Data1 = pCity:GetID(), |
2189
|
Network.SendDoTask(pCity:GetID(), TaskTypes.TASK_UNRAZE, -1, -1, false, false, false, false); |
2266
|
Network.SendSetCityAIFocus( pCity:GetID(), focus ); |
2294
|
Network.SendSetCityAvoidGrowth( pCity:GetID(), not pCity:IsForcedAvoidGrowth() ); |
2375
|
Network.SendSellBuilding(pCity:GetID(), g_iBuildingToSell); |
GameplayUtils.lua (G&K)
DLC/Expansion/Scenarios/SteampunkScenario/GameplayUtils.lua
0251
|
iCityID = pCity:GetID(); |
GPList.lua
UI/InGame/GPList.lua
0152
|
sortEntry.cityID = pCity:GetID(); |
ProductionPopup.lua
UI/InGame/Popups/ProductionPopup.lua
0191
|
local selectedCityID = selectedCity and selectedCity:GetID() or -1; |
0807
|
local currentCityID = city:GetID(); |
ProductionPopup.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ProductionPopup.lua
0113
|
print("purchase: "..iData.." ; "..city:GetID().." ; "..eYield); |
SetCityName.lua
UI/InGame/Popups/SetCityName.lua
0019
|
Network.SendRenameCity(pCity:GetID(), Controls.EditCityName:GetText()); |
TradeLogic.lua
UI/InGame/WorldView/TradeLogic.lua
2465
|
local iCityID = pCity:GetID(); |
WorldView.lua
UI/InGame/WorldView/WorldView.lua
0490
|
Events.SpecificCityInfoDirty( activePlayerID, pHeadSelectedCity:GetID(), CityUpdateTypes.CITY_UPDATE_TYPE_BANNER); |
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.