CvLuaPlayer::lGetPlotDanger(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 8066
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetPlotDanger
Hooks
static bool BeforeCvLuaPlayer_lGetPlotDanger(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetPlotDanger(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetPlotDanger(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetPlotDanger>(host, &BeforeCvLuaPlayer_lGetPlotDanger);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetPlotDanger>(host, &AfterCvLuaPlayer_lGetPlotDanger);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetPlotDanger>(host, &ReplaceCvLuaPlayer_lGetPlotDanger);
Code
8065// int GetPlotDanger();8066int CvLuaPlayer::lGetPlotDanger(lua_State* L)8067{8068 CvPlayerAI* pkPlayer = GetInstance(L);8069 CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);80708071 lua_pushinteger(L, pkPlayer->GetPlotDanger(*pkPlot));8072 return 1;8073}
Calls
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::GetInstance- CvPlayer::GetPlotDanger(CvPlot &) const
lua_pushinteger