Map.GetWorldSize (Civ5 API)

From Civilization Modding Wiki
Revision as of 20:55, 19 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 Map.

This is a static method, invoke it with a dot.


Usage

int Map.GetWorldSize()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

Amazon_XP.lua (G&K)

DLC/Expansion/Maps/Amazon_XP.lua
0066
local grain_amount = grainvalues[Map.GetWorldSize()];
0358
local forest_grain = grainvalues[Map.GetWorldSize()];
1278
local iNumToPlace = worldsizes[Map.GetWorldSize()];


AssignStartingPlots.lua (G&K)

DLC/Expansion/Gameplay/Lua/AssignStartingPlots.lua
6017
local target_number = worldsizes[Map.GetWorldSize()];
7856
local CSluxCount = worldsizes[Map.GetWorldSize()];
7870
local maxToDisable = worldsizes[Map.GetWorldSize()];
8452
local target_list = worldsizes[Map.GetWorldSize()];
8493
local world_size_data = worldsizes[Map.GetWorldSize()];


FeatureGenerator.lua (G&K)

DLC/Expansion/Gameplay/Lua/FeatureGenerator.lua
0339
local atoll_target = worldsizes[Map.GetWorldSize()];


FractalWorld.lua

Gameplay/Lua/FractalWorld.lua
0077
local sizekey = Map.GetWorldSize();


Hemispheres.lua (G&K)

DLC/Expansion/Maps/Hemispheres.lua
0109
local archGrain = worldsizes[Map.GetWorldSize()];


Highlands.lua

Maps/Highlands.lua
0140
local grain_list = worldsizes[Map.GetWorldSize()];
0164
local baseNumPlates = platevalues[Map.GetWorldSize()] or 10;


Skirmish.lua

Maps/Skirmish.lua
0144
local grain = worldsizes[Map.GetWorldSize()];


TerrainGenerator.lua

Gameplay/Lua/TerrainGenerator.lua
0067
local world_info = GameInfo.Worlds[Map.GetWorldSize()];



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.