https://modiki.civfanatics.com/index.php?title=City.CanCreate_(Civ5_API)&feed=atom&action=history
City.CanCreate (Civ5 API) - Revision history
2024-03-29T11:27:06Z
Revision history for this page on the wiki
MediaWiki 1.38.2
https://modiki.civfanatics.com/index.php?title=City.CanCreate_(Civ5_API)&diff=10494&oldid=prev
DonQuich: Bot update
2012-09-19T17:10:37Z
<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|City}}.<br/><br />
This is an instance method, invoke it with a colon.<br />
}}<br />
<br />
<br />
=Usage=<br />
<code>'''bool''' City:CanCreate<b>(</b>{{Type5|ProjectType}} project, '''int''' continue, '''int''' testVisible<b>)</b></code><br />
<br />
<br />
'''Returned Value'''<br />
:No description available.<br />
'''Parameters'''<br />
:{|<br />
|-<br />
|valign="top" style="padding-right:6px;"|project:<br />
|valign="top"| ''No description available.''<br />
|-<br />
|valign="top" style="padding-right:6px;"|continue:<br />
|valign="top"| ''No description available.''<br />
|-<br />
|valign="top" style="padding-right:6px;"|testVisible:<br />
|valign="top"| ''No description available.''<br />
|}<br />
<br />
<br />
=Source code samples=<br />
''Redundant occurences have been removed.''<br />
<br />
{{PseudoH4|ProductionPopup.lua}}<br />
:<code>UI/InGame/Popups/ProductionPopup.lua</code><br />
:{{CodeBegin5}}<br />
{{CodeLine5|0326}}<syntaxhighlight lang="lua">if city:CanCreate( projectID, 0, 1 ) then</syntaxhighlight><br />
{{CodeBreak5}}<br />
{{CodeLine5|0330}}<syntaxhighlight lang="lua">if( not city:CanCreate( projectID ) )</syntaxhighlight><br />
{{CodeEnd5}}<br />
<br />
<br />
<br />
<br />
{{Civ5 API Footer}}<br />
[[Category:Civ5 Methods and Functions|CanCreate]]<br />
[[Category:Civ5 City Production API|CanCreate]]</div>
DonQuich