ArtStyleType (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 ArtStyleType 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 ArtStyleType corresponds to the ID column of the ArtStyleTypes XML table.


XML: the ArtStyleTypes table

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

ID Type
0 ARTSTYLE_SOUTH_AMERICA
1 ARTSTYLE_ASIAN
2 ARTSTYLE_MIDDLE_EAST
3 ARTSTYLE_EUROPEAN
4 ARTSTYLE_GRECO_ROMAN
5 ARTSTYLE_POLYNESIAN
6 ARTSTYLE_BARBARIAN


Examples

Here are different ways to query the database to retrieve the ID from the type. Those examples will return and assign the integer value 0. See also GameInfo.

local id = GameInfo.ArtStyleTypes.ARTSTYLE_SOUTH_AMERICA.ID
local id = GameInfo["ArtStyleTypes"].["ARTSTYLE_SOUTH_AMERICA"].ID
local id = GameInfo.ArtStyleTypes{Type="ARTSTYLE_SOUTH_AMERICA"}().ID


Used by

ArtStyleType City:GetArtStyleType()
Events.SerialEventCityCreated(Vector2 vHexPos, PlayerID player, CityID cityID, ArtStyleType artStyleType, EraType eraType, int continent, int populationSize, int size, int fogState)
Events.SerialEventImprovementCreated(float hexX, int hexY, ArtStyleType continent1, ArtStyleType continent2, PlayerID player, int createImprovementType, ImprovementType createImprovementRRType, int createImprovementEra, int createImprovementState, unknown ImprovementEra = nil)
Events.SerialEventRawResourceCreated(float hexX, int hexY, ArtStyleType continent, ArtStyleType continent, PlayerID player, int arg5, int createResourceType, int arg7, int arg8)
ArtStyleType Player:GetArtStyleType()
ArtStyleType Plot:GetContinentArtType()
Plot:SetContinentArtType(ArtStyleType style)



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.