CityID (Civ5 Type)

From Civilization Modding Wiki
Jump to: navigation, search

This page is a part of the Lua and UI Reference (Civ5).


ID.png The CityID pseudo-type is actually a regular integer. Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki!


Used by

CityID City:GetID()
Events.InitCityRangeStrike(PlayerID Player, CityID CityID)
Events.SerialEventCityCreated(Vector2 vHexPos, PlayerID player, CityID cityID, ArtStyleType artStyleType, EraType eraType, int continent, int populationSize, int size, int fogState)
Events.SerialEventCitySetDamage(PlayerID player, CityID cityID, int damage, int previousDamage)
Events.SpecificCityInfoDirty(PlayerID player, CityID cityID, CityUpdateType updateType)
GameEvents.CityCanConstruct(PlayerID player, CityID city, BuildingType buildingType)
Network.SendCityBuyPlot(CityID arg0, int plotX, int plotY)
Network.SendDoTask(CityID cityID, TaskType task, int plotIndex, int arg3, bool arg4, bool alt, bool shift, bool ctrl)
Network.SendRenameCity(CityID arg0, string arg1)
Network.SendSellBuilding(CityID arg0, BuildingType buildingToSell)
Network.SendSetCityAIFocus(CityID arg0, TaskType focus)
Network.SendSetCityAvoidGrowth(CityID arg0, bool arg1)
Network.SendUpdateCityCitizens(CityID arg0)
City Player:GetCityByID(CityID city)



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.