CvLuaPlayer::lGetUnhappinessFromCitySpecialists(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 3276
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetUnhappinessFromCitySpecialists
Hooks
static bool BeforeCvLuaPlayer_lGetUnhappinessFromCitySpecialists(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetUnhappinessFromCitySpecialists(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetUnhappinessFromCitySpecialists(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetUnhappinessFromCitySpecialists>(host, &BeforeCvLuaPlayer_lGetUnhappinessFromCitySpecialists);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetUnhappinessFromCitySpecialists>(host, &AfterCvLuaPlayer_lGetUnhappinessFromCitySpecialists);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetUnhappinessFromCitySpecialists>(host, &ReplaceCvLuaPlayer_lGetUnhappinessFromCitySpecialists);
Code
3275//int GetUnhappinessFromCitySpecialists() const;3276int CvLuaPlayer::lGetUnhappinessFromCitySpecialists(lua_State* L)3277{3278 CvPlayerAI* pkPlayer = GetInstance(L);3279 CvCity* pAnnexedCity = CvLuaCity::GetInstance(L, 2, false);3280 CvCity* pPuppetedCity = CvLuaCity::GetInstance(L, 3, false);3281 const int iResult = pkPlayer->GetUnhappinessFromCitySpecialists(pAnnexedCity, pPuppetedCity);3282 lua_pushinteger(L, iResult);3283 return 1;3284}
Calls
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::GetInstance- CvPlayer::GetUnhappinessFromCitySpecialists(CvCity *, CvCity *) const
lua_pushinteger