Lua Game Objects/City: Difference between revisions
From Civilization Modding Wiki
Jump to navigationJump to search
Killmeplease (talk | contribs) No edit summary |
Killmeplease (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
*[[SerialEventCityCaptured]] - fired when city is captured '''or traded to an another civ'''. | *[[SerialEventCityCaptured]] - fired when city is captured '''or traded to an another civ'''. | ||
*[[SerialEventCityDestroyed]] - fired when city is destroyed. | |||
*[[SerialEventCityPopulationChanged]] - fired when a population of a particular city was changed. | *[[SerialEventCityPopulationChanged]] - fired when a population of a particular city was changed. | ||
*[[SpecificCityInfoDirty]] - fired when something in a particular city was changed. | *[[SpecificCityInfoDirty]] - fired when something in a particular city was changed. |
Revision as of 10:35, 14 February 2012
Up: Lua Game Objects
Methods
- IsHasBuilding ( buildingID ) - returns true if a subject city has a building with a specified ID
Related Events
- SerialEventCityCaptured - fired when city is captured or traded to an another civ.
- SerialEventCityDestroyed - fired when city is destroyed.
- SerialEventCityPopulationChanged - fired when a population of a particular city was changed.
- SpecificCityInfoDirty - fired when something in a particular city was changed.