CvLuaCity::lGetNumFollowers(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 2580
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lGetNumFollowers
Hooks
static bool BeforeCvLuaCity_lGetNumFollowers(lua_State* L, int& result);static void AfterCvLuaCity_lGetNumFollowers(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetNumFollowers(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetNumFollowers>(host, &BeforeCvLuaCity_lGetNumFollowers);CivRegisterAfter<CivHooks::CvLuaCity_lGetNumFollowers>(host, &AfterCvLuaCity_lGetNumFollowers);CivRegisterReplace<CivHooks::CvLuaCity_lGetNumFollowers>(host, &ReplaceCvLuaCity_lGetNumFollowers);
Code
2579//int GetNumFollowers(ReligionTypes eReligion) const;2580int CvLuaCity::lGetNumFollowers(lua_State* L)2581{2582 CvCity* pkCity = GetInstance(L);2583 ReligionTypes eReligion = (ReligionTypes)lua_tointeger(L, 2);2584 const int iResult = pkCity->GetCityReligions()->GetNumFollowers(eReligion);25852586 lua_pushinteger(L, iResult);2587 return 1;2588}
Calls
- CvCity::GetCityReligions() const
- CvCityReligions::GetNumFollowers(ReligionTypes)
CvLuaScopedInstance::GetInstancelua_pushintegerlua_tointeger