Network.SendDoTask (Civ5 API)

From Civilization Modding Wiki
Revision as of 06:50, 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 Network.

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


Usage

void Network.SendDoTask(CityID cityID, TaskType task, int plotIndex, int arg3, bool arg4, bool alt, bool shift, bool ctrl)


Parameters

cityID: No description available.
task: No description available.
plotIndex: No description available.
arg3: No description available.
arg4: No description available.
alt: No description available.
shift: No description available.
ctrl: No description available.


Source code samples

Redundant occurences have been removed.

AnnexCityPopup.lua

UI/InGame/PopupsGeneric/AnnexCityPopup.lua
0018
Network.SendDoTask(cityID, TaskTypes.TASK_ANNEX_PUPPET, -1, -1, false, false, false, false);


CityView.lua

UI/InGame/CityView/CityView.lua
0229
Network.SendDoTask(pCity:GetID(), TaskTypes.TASK_CHANGE_WORKING_PLOT, 0, -1, false, bAlt, bShift, bCtrl);
1685
Network.SendDoTask(pCity:GetID(), TaskTypes.TASK_CHANGE_WORKING_PLOT, iPlotIndex, -1, false, bAlt, bShift, bCtrl);
2189
Network.SendDoTask(pCity:GetID(), TaskTypes.TASK_UNRAZE, -1, -1, false, false, false, false);


ConfirmCityTaskPopup.lua

UI/InGame/PopupsGeneric/ConfirmCityTaskPopup.lua
0020
Network.SendDoTask(iCityID, iTask, -1, -1, false, false, false, false);


LiberateMinorPopup.lua

UI/InGame/PopupsGeneric/LiberateMinorPopup.lua
0027
Network.SendDoTask(iCityID, TaskTypes.TASK_CREATE_PUPPET, -1, -1, false, false, false, false);


PuppetCityPopup.lua

UI/InGame/PopupsGeneric/PuppetCityPopup.lua
0066
Network.SendDoTask(cityID, TaskTypes.TASK_CREATE_PUPPET, -1, -1, false, false, false, false);
0077
Network.SendDoTask(cityID, TaskTypes.TASK_RAZE, -1, -1, false, false, false, false);



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.