<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Map.GetGridSize_%28Civ5_API%29</id>
	<title>Map.GetGridSize (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=Map.GetGridSize_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Map.GetGridSize_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-25T19:09:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Map.GetGridSize_(Civ5_API)&amp;diff=11442&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Map.GetGridSize_(Civ5_API)&amp;diff=11442&amp;oldid=prev"/>
		<updated>2012-09-19T20:50:26Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of {{Type5|Map}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is a static method, invoke it with a dot.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; Map.GetGridSize&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returned Values&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:No description available.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source code samples=&lt;br /&gt;
&amp;#039;&amp;#039;Redundant occurences have been removed.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Amazon_XP.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Maps/Amazon_XP.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0052}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0452}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0453}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local riverPlot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0558}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0559}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;thisFlowDirection = thisFlowDirection or FlowDirectionTypes.NO_FLOWDIRECTION;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0797}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0799}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Place the Amazon!&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0800}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;print(&amp;quot;Charting the Amazon River (Lua Amazon) ...&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1434}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1435}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local uran_amt, horse_amt, oil_amt, iron_amt, coal_amt, alum_amt = self:GetMajorStrategicResourceQuantityValues()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|AssignStartingPlots.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0863}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0864}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local xEnd, yEnd; --[[ These coordinates will be used in case of wrapping landmass,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0908}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0909}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local adjusted_table = {};&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|1290}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|1291}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iWestX = rectangle_data_table[1];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|6100}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|6101}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local ratio = self.iNumCityStates / self.iNumCivs;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|6447}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|6448}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iNumCoastal = table.maxn(coastal_plot_list);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|9525}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|9526}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;for y = 0, iH - 1 do&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Boreal.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Maps/Boreal.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0225}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0226}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local x = plot:GetX()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0475}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0476}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;print(&amp;quot;Inland Sea - Adding Rivers&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0565}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0566}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if iY == iH - 1 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|FeatureGenerator.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0311}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0312}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local biggest_ocean = Map.FindBiggestArea(true)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|FractalWorld.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Gameplay/Lua/FractalWorld.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0015}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local gridWidth, gridHeight = Map.GetGridSize();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|GenericWorldAnchor.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/GenericWorldAnchor.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0007}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local m_gridWidth, _ = Map.GetGridSize();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Great_Plains.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Great_Plains.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0789}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0791}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Place the Mississippi!&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0792}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;print(&amp;quot;Charting the Mississippi (Lua Great Plains) ...&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|ReplayViewer.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/Popups/ReplayViewer.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|1249}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local mapWidth, mapHeight = Map.GetGridSize();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|ResourceIconManager.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;UI/InGame/ResourceIconManager.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0019}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local g_gridWidth, _ = Map.GetGridSize();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Ring.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Ring.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0168}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0169}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iWH = iW * iH;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0618}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0619}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;self.iNumCityStatesPerRegion = 0;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Skirmish.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/Skirmish.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0623}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0624}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;print(&amp;quot;Skirmish - Adding Rivers&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|Tilted_Axis.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Maps/Tilted_Axis.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0799}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0800}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if iY &amp;gt;= iH / 2 then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0919}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0920}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local args = {&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|West_vs_East.lua}}&lt;br /&gt;
:&amp;lt;code&amp;gt;Maps/West_vs_East.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0194}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iW, iH = Map.GetGridSize()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0195}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;print(&amp;quot;West vs East - Adding Rivers&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|GetGridSize]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>