Matchmaking.GetLocalID (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 Matchmaking.

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


Usage

PlayerID Matchmaking.GetLocalID()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

MPGameOptions.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0021
return Matchmaking.GetLocalID() ~= -1;
0032
m_bIsInStagingRoom = (Matchmaking.GetLocalID() ~= -1);
0038
return (Matchmaking.IsHost() and PreGame.GetLoadFileName() == "") or PreGame.IsHotSeatGame() or Matchmaking.GetLocalID() == -1;
0045
return (PreGame.GetLoadFileName() == "" and Matchmaking.GetLocalID() == -1) or PreGame.IsHotSeatGame();
0218
if(Matchmaking.GetLocalID() == -1 or Matchmaking.IsHost()) then


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
0070
PreGame.SetLeaderName( Matchmaking.GetLocalID(), "" );
0071
PreGame.SetCivilizationDescription( Matchmaking.GetLocalID(), "" );
0072
PreGame.SetCivilizationShortDescription( Matchmaking.GetLocalID(), "" );
0073
PreGame.SetCivilizationAdjective( Matchmaking.GetLocalID(), "" );
0075
local civIndex = PreGame.GetCivilization( Matchmaking.GetLocalID() );
0128
return Matchmaking.GetLocalID();
0192
PreGame.SetReady( Matchmaking.GetLocalID(), bChecked );
0291
if( playerInfo.playerID == Matchmaking.GetLocalID() ) then
0497
local playerName = playerInfo.playerName or Locale.ConvertTextKey( "TXT_KEY_MULTIPLAYER_DEFAULT_PLAYER_NAME", Matchmaking.GetLocalID() + 1);
0515
SimpleCivIconHookup( Matchmaking.GetLocalID(), 64, Controls.Icon);
0528
local teamID = PreGame.GetTeam(Matchmaking.GetLocalID()) + 1; -- Real programmers count from zero.
0534
Controls.HandicapLabel:LocalizeAndSetText( GameInfo.HandicapInfos( "ID = '" .. PreGame.GetHandicap( Matchmaking.GetLocalID() ) .. "'" )().Description );
0540
local bIsReady = PreGame.IsReady( Matchmaking.GetLocalID() );
0543
PreGame.SetReady(Matchmaking.GetLocalID(), true);
0564
Controls.HostIcon:SetHide( Matchmaking.GetLocalID() ~= m_HostID );
0743
if( playerID ~= Matchmaking.GetLocalID() ) then
0856
PreGame.SetReady( Matchmaking.GetLocalID() );



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.