Bazaar developer reference

CvLuaPlayer::lIsNoResearchAvailable(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 2132
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsNoResearchAvailable

Hooks

static bool BeforeCvLuaPlayer_lIsNoResearchAvailable(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsNoResearchAvailable(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsNoResearchAvailable(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsNoResearchAvailable>(host, &BeforeCvLuaPlayer_lIsNoResearchAvailable);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsNoResearchAvailable>(host, &AfterCvLuaPlayer_lIsNoResearchAvailable);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsNoResearchAvailable>(host, &ReplaceCvLuaPlayer_lIsNoResearchAvailable);

Code

2131//bool isNoResearchAvailable();2132int CvLuaPlayer::lIsNoResearchAvailable(lua_State* L)2133{2134	CvPlayerAI* pkPlayer = GetInstance(L);21352136	const bool bResult2137	    = pkPlayer->GetPlayerTechs()->IsNoResearchAvailable();2138	lua_pushboolean(L, bResult);2139	return 1;2140}

Calls

Called by