CvLuaPlayer::lGetNegativeArchaeologyPoints(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 8549
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetNegativeArchaeologyPoints
Hooks
static bool BeforeCvLuaPlayer_lGetNegativeArchaeologyPoints(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetNegativeArchaeologyPoints(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetNegativeArchaeologyPoints(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetNegativeArchaeologyPoints>(host, &BeforeCvLuaPlayer_lGetNegativeArchaeologyPoints);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetNegativeArchaeologyPoints>(host, &AfterCvLuaPlayer_lGetNegativeArchaeologyPoints);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetNegativeArchaeologyPoints>(host, &ReplaceCvLuaPlayer_lGetNegativeArchaeologyPoints);
Code
8549int CvLuaPlayer::lGetNegativeArchaeologyPoints(lua_State* L)8550{8551 CvPlayerAI* pkPlayer = GetInstance(L);8552 PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);85538554 const int iValue = pkPlayer->GetDiplomacyAI()->GetNegativeArchaeologyPoints(eOtherPlayer);85558556 lua_pushinteger(L, iValue);8557 return 1;8558}
Calls
- CvDiplomacyAI::GetNegativeArchaeologyPoints(PlayerTypes) const
CvLuaScopedInstance::GetInstance- CvPlayer::GetDiplomacyAI() const
lua_pushintegerlua_tointeger