https://modiki.civfanatics.com/index.php?title=Map.GetPlotByIndex_(Civ5_API)&feed=atom&action=history
Map.GetPlotByIndex (Civ5 API) - Revision history
2024-03-29T15:15:07Z
Revision history for this page on the wiki
MediaWiki 1.38.2
https://modiki.civfanatics.com/index.php?title=Map.GetPlotByIndex_(Civ5_API)&diff=11437&oldid=prev
DonQuich: Bot update
2012-09-19T20:49:15Z
<p>Bot update</p>
<p><b>New page</b></p><div>{{Civ5 API Beta Banner}}<br />
''This page is a part of the [[Lua and UI Reference (Civ5)]].''<br/><br />
<br />
<br />
<br />
{{TypeInfos5|Function.png|This function is a member of {{Type5|Map}}.<br/><br />
This is a static method, invoke it with a dot.<br />
}}<br />
<br />
<br />
=Usage=<br />
<code>{{Type5|Plot}} Map.GetPlotByIndex<b>(</b>{{Type5|PlotID}} index<b>)</b></code><br />
<br />
<br />
'''Returned Value'''<br />
:No description available.<br />
'''Parameters'''<br />
:{|<br />
|-<br />
|valign="top" style="padding-right:6px;"|index:<br />
|valign="top"| ''No description available.''<br />
|}<br />
<br />
<br />
=Source code samples=<br />
''Redundant occurences have been removed.''<br />
<br />
{{PseudoH4|AdvisorModal.lua}}<br />
:<code>UI/InGame/Popups/AdvisorModal.lua</code><br />
:{{CodeBegin5}}<br />
{{CodeLine5|0073}}<syntaxhighlight lang="lua">g_referencePlot = Map.GetPlotByIndex(popupInfo.Data2);</syntaxhighlight><br />
{{CodeEnd5}}<br />
<br />
<br />
{{PseudoH4|InGame.lua}}<br />
:<code>UI/InGame/InGame.lua</code><br />
:{{CodeBegin5}}<br />
{{CodeLine5|0089}}<syntaxhighlight lang="lua">pPlot = Map.GetPlotByIndex(iPlotLoop);</syntaxhighlight><br />
{{CodeEnd5}}<br />
<br />
<br />
{{PseudoH4|MapGenerator.lua (G&K)}}<br />
:<code>DLC/Expansion/Gameplay/Lua/MapGenerator.lua</code><br />
:{{CodeBegin5}}<br />
{{CodeLine5|0042}}<syntaxhighlight lang="lua">plot = _plots[index] or Map.GetPlotByIndex(index);</syntaxhighlight><br />
{{CodeEnd5}}<br />
<br />
<br />
{{PseudoH4|ReplayViewer.lua}}<br />
:<code>UI/InGame/Popups/ReplayViewer.lua</code><br />
:{{CodeBegin5}}<br />
{{CodeLine5|1334}}<syntaxhighlight lang="lua">local plot = Map.GetPlotByIndex(i);</syntaxhighlight><br />
{{CodeEnd5}}<br />
<br />
<br />
<br />
<br />
{{Civ5 API Footer}}<br />
[[Category:Civ5 Methods and Functions|GetPlotByIndex]]</div>
DonQuich