CvLuaPlayer::lGetMinorCivBullyGoldAmount(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 7034
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetMinorCivBullyGoldAmount
Hooks
static bool BeforeCvLuaPlayer_lGetMinorCivBullyGoldAmount(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetMinorCivBullyGoldAmount(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetMinorCivBullyGoldAmount(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetMinorCivBullyGoldAmount>(host, &BeforeCvLuaPlayer_lGetMinorCivBullyGoldAmount);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetMinorCivBullyGoldAmount>(host, &AfterCvLuaPlayer_lGetMinorCivBullyGoldAmount);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetMinorCivBullyGoldAmount>(host, &ReplaceCvLuaPlayer_lGetMinorCivBullyGoldAmount);
Code
7033//int GetMinorCivBullyGoldAmount(PlayerTypes eMajor);7034int CvLuaPlayer::lGetMinorCivBullyGoldAmount(lua_State* L)7035{7036 CvPlayerAI* pkPlayer = GetInstance(L);7037 PlayerTypes eMajor = (PlayerTypes) lua_tointeger(L, 2);70387039 const int iValue = pkPlayer->GetMinorCivAI()->GetBullyGoldAmount(eMajor);7040 lua_pushinteger(L, iValue);7041 return 1;7042}
Calls
CvLuaScopedInstance::GetInstance- CvMinorCivAI::GetBullyGoldAmount(PlayerTypes)
- CvPlayer::GetMinorCivAI() const
lua_pushintegerlua_tointeger