EraType (Civ5 Type)

From Civilization Modding Wiki
Jump to navigationJump to search

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


ID.png The EraType pseudo-type is actually a regular integer. Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki!
  • DB.png Integers labeled as EraType corresponds to the ID column of the Eras XML table.


XML: the Eras table

Here are the ID and Type columns found in this table.

ID Type
0 ERA_ANCIENT
1 ERA_CLASSICAL
2 ERA_MEDIEVAL
3 ERA_RENAISSANCE
4 ERA_INDUSTRIAL
5 ERA_MODERN
6 ERA_FUTURE
6 ERA_POSTMODERN


Examples

Used by

Events.SerialEventCityCreated(Vector2 vHexPos, PlayerID player, CityID cityID, ArtStyleType artStyleType, EraType eraType, int continent, int populationSize, int size, int fogState)
EraType Game.GetCurrentEra()
EraType Game.GetStartEra()
table(EraType => ModInfo) Locale.GetSupportedLanguages()
table(EraType => ModInfo) Locale.GetSupportedSpokenLanguages()
EraType OptionsManager.GetResolution_Cached()
OptionsManager.SetBindMouseMode_Cached(EraType level)
OptionsManager.SetFOWLevel_Cached(EraType level)
OptionsManager.SetLeaderQuality_Cached(EraType level)
OptionsManager.SetOverlayLevel_Cached(EraType level)
OptionsManager.SetResolution_Cached(EraType fullscreenRes)
OptionsManager.SetShadowLevel_Cached(EraType level)
OptionsManager.SetTerrainDetailLevel_Cached(EraType level)
OptionsManager.SetTerrainShadowQuality_Cached(EraType level)
OptionsManager.SetTerrainTessLevel_Cached(EraType level)
OptionsManager.SetTextureQuality_Cached(EraType level)
OptionsManager.SetWaterQuality_Cached(EraType level)
EraType Player:GetCurrentEra()
EraType PreGame.GetEra()
PreGame.SetEra(EraType id)
int, int, unknown, unknown, unknown, int UIManager.GetResInfo(EraType i)



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.