CvLuaPlayer::lIsResearch(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 2066
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lIsResearch
Hooks
static bool BeforeCvLuaPlayer_lIsResearch(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsResearch(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsResearch(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsResearch>(host, &BeforeCvLuaPlayer_lIsResearch);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsResearch>(host, &AfterCvLuaPlayer_lIsResearch);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsResearch>(host, &ReplaceCvLuaPlayer_lIsResearch);
Code
2065//bool isResearch();2066int CvLuaPlayer::lIsResearch(lua_State* L)2067{2068 CvPlayerAI* pkPlayer = GetInstance(L);20692070 const bool bResult = pkPlayer->GetPlayerTechs()->IsResearch();2071 lua_pushboolean(L, bResult);2072 return 1;2073}
Calls
CvLuaScopedInstance::GetInstance- CvPlayer::GetPlayerTechs() const
- CvPlayerTechs::IsResearch() const
lua_pushboolean