Matchmaking.IsHost (Civ5 API)

From Civilization Modding Wiki
Revision as of 20:56, 19 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 Matchmaking.

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


Usage

int Matchmaking.IsHost()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0201
local bShow = Matchmaking.IsHost() and PreGame.IsInternetGame();


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0141
if(not Matchmaking.IsHost()) then


JoiningRoom.lua

UI/FrontEnd/Multiplayer/JoiningRoom.lua
0027
if Matchmaking.IsHost() then
0102
if not Matchmaking.IsHost() then


MPGameOptions.lua

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


OptionsMenu.lua

UI/Options/OptionsMenu.lua
0098
if (Matchmaking.IsHost()) then
0317
if( bIsInGame and PreGame.IsMultiplayerGame() and not Matchmaking.IsHost()) then


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
0276
m_bIsHost = Matchmaking.IsHost();
0585
local isHost = Matchmaking.IsHost();



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.