AreaID (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 AreaID 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

table(int => int) ObtainLandmassBoundaries(AreaID areaID)
AreaID Area:GetID()
bool AssignStartingPlots:CanPlaceCityStateAt(int x, int y, AreaID area_ID, int force_it, int ignore_collisions)
unknown AssignStartingPlots:ChopIntoThreeRegions(unknown fertility_table, table rectangle_data_table, bool taller, unknown chopPercent = nil)
unknown AssignStartingPlots:ChopIntoTwoRegions(unknown fertility_table, table rectangle_data_table, bool taller, float chopPercent)
AssignStartingPlots:DivideIntoRegions(int numDivisions, unknown fertility_table, table rectangle_data_table)
unknown, AreaID, AreaID AssignStartingPlots:MeasureStartPlacementFertilityOfLandmass(AreaID areaID, AreaID westX, int eastX, AreaID southY, int northY, bool wrapsX, bool wrapsY)
table(int => int), table(int => int), unknown, unknown, unknown, unknown, unknown AssignStartingPlots:ObtainNextSectionInRegion(int incoming_west_x, int incoming_south_y, int incoming_width, int incoming_height, AreaID areaID, int force_it, int ignore_collisions)
iterator(AreaID, Area) Map.Areas()
Area Map.GetArea(AreaID areaID)
AreaID Plot:GetArea()
AreaID Plot:GetNearestLandArea()
Plot:SetArea(AreaID area)

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.