Network.SendResearch (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, 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.SendResearch(PlayerID tech, ResourceType discover, int value, bool arg3 = nil)


Parameters

tech: No description available.
discover: No description available.
value: No description available.
arg3: No description available.


Source code samples

Redundant occurences have been removed.

TechPopup.lua

UI/InGame/TechPopup.lua
0044
Network.SendResearch(eTech, iDiscover, false);


TechPopup.lua (G&K)

DLC/Expansion/UI/InGame/TechPopup.lua
0050
Network.SendResearch(eTech, 0, iValue, false);
0052
Network.SendResearch(eTech, iValue, -1, false); -- iValue is number of free (non-espionage) techs


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0435
Network.SendResearch(eTech, player:GetNumFreeTechs(), -1, UIManager:GetShift());


TechTree.lua (G&K)

DLC/Expansion/UI/TechTree/TechTree.lua
0439
Network.SendResearch(eTech, 0, stealingTechTargetPlayerID, UIManager:GetShift());



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.