AssignStartingPlots.CustomOverride (Civ5 API)

From Civilization Modding Wiki
Revision as of 13:49, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of AssignStartingPlots.

This is an instance method, invoke it with a colon.


Usage

unknown, int, int, int AssignStartingPlots:CustomOverride(ResourceType resource_)


Returned Values

No description available.

Parameters

resource_: No description available.


Source code samples

AssignStartingPlots.lua

Gameplay/Lua/AssignStartingPlots.lua
1497
self:CustomOverride()
1499
--[[ Printout is for debugging only. Deactivate otherwise.
1500
local tempRegionData = self.regionData;
1501
for i, data in ipairs(tempRegionData) do
1502
   print("-");
1503
   print("Data for Start Region #", i);
1504
   print("WestX:  ", data[1]);
1505
   print("SouthY: ", data[2]);
1506
   print("Width:  ", data[3]);
1507
   print("Height: ", data[4]);
1508
   print("AreaID: ", data[5]);
1509
   print("Fertility:", data[6]);
1510
   print("Plots:  ", data[7]);
1511
   print("Fert/Plot:", data[8]);
1512
   print("-");
1513
   end
1514
   ]]--
1515
   end


AssignStartingPlots.lua (G&K)

DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
1745
self:CustomOverride()
1747
-- Printout is for debugging only. Deactivate otherwise.
1748
local tempRegionData = self.regionData;


Skirmish.lua

Maps/Skirmish.lua
1176
primary, secondary, tertiary, quaternary = self:CustomOverride(res_ID);



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.