Bazaar developer reference

CvLuaPlayer::lCanSpyStageCoup(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 11604
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lCanSpyStageCoup

Hooks

static bool BeforeCvLuaPlayer_lCanSpyStageCoup(lua_State* L, int& result);static void AfterCvLuaPlayer_lCanSpyStageCoup(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lCanSpyStageCoup(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lCanSpyStageCoup>(host, &BeforeCvLuaPlayer_lCanSpyStageCoup);CivRegisterAfter<CivHooks::CvLuaPlayer_lCanSpyStageCoup>(host, &AfterCvLuaPlayer_lCanSpyStageCoup);CivRegisterReplace<CivHooks::CvLuaPlayer_lCanSpyStageCoup>(host, &ReplaceCvLuaPlayer_lCanSpyStageCoup);

Code

11604int CvLuaPlayer::lCanSpyStageCoup(lua_State* L)11605{11606	CvPlayer* pkPlayer = GetInstance(L);11607	int iSpyIndex = lua_tointeger(L, 2);11608	bool bCanStageCoup = pkPlayer->GetEspionage()->CanStageCoup(iSpyIndex);1160911610	lua_pushboolean(L, bCanStageCoup);11611	return 1;11612}

Calls

Called by