InstanceManager.GetInstance (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:10, 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 InstanceManager.

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


Usage

unknown InstanceManager:GetInstance()


Returned Value

No description available.


Source code samples

Too many occurences. Only 50 out of 953 are listed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0088
local gameOption = g_DropDownOptionsManager:GetInstance();


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0601
controlTable = g_TeamIM:GetInstance();


CityView.lua

UI/InGame/CityView/CityView.lua
0290
local controlTable = g_BuildingIM:GetInstance();
1734
local controlTable = g_PlotButtonIM:GetInstance();


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
2058
local thisUnitInstance = g_UnlockedUnitsManager:GetInstance();
2076
local thisBuildingInstance = g_UnlockedBuildingsManager:GetInstance();
2125
local thisRevealedResourceInstance = g_RevealedResourcesManager:GetInstance();
2644
local thisRequiredPromotionInstance = g_RequiredPromotionsManager:GetInstance();
3021
local thisBuildingInstance = g_ReplacesManager:GetInstance();
3572
local thisImprovementInstance = g_UniqueImprovementsManager:GetInstance();
4179
local thisPrereqInstance = g_RevealTechsManager:GetInstance();
4231
local thisTerrainInstance = g_ResourcesFoundManager:GetInstance();
4617
local thisListInstance = g_ListItemManager:GetInstance();
4630
local thisHeaderInstance = g_ListHeadingManager:GetInstance();
4678
local thisTechInstance = g_ListItemManager:GetInstance();
4692
local thisEraInstance = g_ListHeadingManager:GetInstance();


Credits.lua

UI/FrontEnd/Credits.lua
0070
local majorTitle = g_MajorTitleManager:GetInstance();
0079
local entry = g_EntryManager:GetInstance();


DiploList.lua

UI/InGame/DiploList.lua
0256
local controlTable = g_LeaderButtonIM:GetInstance();
0432
local controlTable = g_MinorCivButtonIM:GetInstance();


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0920
instanceControls = g_InstanceManager:GetInstance();


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0339
local controlTable = g_GameOptionIM:GetInstance();


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0565
local detail = g_DetailsDependentMods:GetInstance();


MilitaryOverview.lua

UI/InGame/Popups/MilitaryOverview.lua
0148
instance = m_MilitaryIM:GetInstance();
0151
instance = m_CivilianIM:GetInstance();


NetworkDebug.lua

UI/InGame/NetworkDebug.lua
0012
local item = g_PlayerSliceInfoIM:GetInstance();


PathHelpManager.lua

UI/InGame/WorldView/PathHelpManager.lua
0030
local instance = m_InstanceManager:GetInstance();


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
0436
local lineSegment = g_LineSegmentInstanceManager:GetInstance();


SaveMenu.lua

UI/InGame/Menus/SaveMenu.lua
0508
local instance = g_InstanceManager:GetInstance();


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0583
controlTable = g_TraditionPipeManager:GetInstance();
0589
controlTable = g_PatronagePipeManager:GetInstance();
0595
controlTable = g_FreedomPipeManager:GetInstance();
0872
controlTable = g_CommerceInstanceManager:GetInstance();
0874
controlTable = g_RationalismInstanceManager:GetInstance();
0878
controlTable = g_OrderInstanceManager:GetInstance();
0880
controlTable = g_AutocracyInstanceManager:GetInstance();


SocialPolicyPopup.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/SocialPolicyPopup.lua
0389
controlTable = g_LaborPipeManager:GetInstance();
0391
controlTable = g_CulturePipeManager:GetInstance();
0648
controlTable = g_IndustryInstanceManager:GetInstance();
0652
controlTable = g_MilitaryInstanceManager:GetInstance();


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0151
local hConnection = g_PipeManager:GetInstance();
0159
local vConnection = g_PipeManager:GetInstance();
0201
local startPipe = g_PipeManager:GetInstance();
0206
local pipe = g_PipeManager:GetInstance();
0220
pipe = g_PipeManager:GetInstance();


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1712
instance = g_UsTableCitiesIM:GetInstance();


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0223
instance = g_PromotionIM:GetInstance();


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0221
curRow = g_DominationRowsIM:GetInstance();
0573
local controlTable = g_TechIM:GetInstance();
0815
local controlTable = cultureMgr:GetInstance();



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.