PreGame.SetWorldSize (Civ5 API)

From Civilization Modding Wiki
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 PreGame.

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


Usage

void PreGame.SetWorldSize(HandicapType id)


Parameters

id: No description available.


Source code samples

Redundant occurences have been removed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0610
PreGame.SetWorldSize( id );
0801
PreGame.SetWorldSize(wb.MapSize);
1209
PreGame.SetWorldSize( worldSize.ID );


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0061
PreGame.SetWorldSize( worldInfo.ID );


LoadTutorial.lua

UI/FrontEnd/LoadTutorial.lua
0102
PreGame.SetWorldSize(0);


MedievalScenarioLoadScreen.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/MedievalScenarioLoadScreen.lua
0087
PreGame.SetWorldSize(GameInfo.Worlds.WORLDSIZE_HUGE.ID);


MPGameOptions.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0090
PreGame.SetWorldSize(1);
0464
PreGame.SetWorldSize(id);


SelectMapType.lua

UI/FrontEnd/GameSetup/SelectMapType.lua
0074
PreGame.SetWorldSize( mapInfo.MapSize );


SteampunkScenarioLoadScreen.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/SteampunkScenarioLoadScreen.lua
0058
PreGame.SetWorldSize(GameInfo.Worlds.WORLDSIZE_SMALL.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.