Bazaar developer reference

CvLuaGame::lGetNumFollowers(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 2430
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetNumFollowers

Hooks

static bool BeforeCvLuaGame_lGetNumFollowers(lua_State* L, int& result);static void AfterCvLuaGame_lGetNumFollowers(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetNumFollowers(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetNumFollowers>(host, &BeforeCvLuaGame_lGetNumFollowers);CivRegisterAfter<CivHooks::CvLuaGame_lGetNumFollowers>(host, &AfterCvLuaGame_lGetNumFollowers);CivRegisterReplace<CivHooks::CvLuaGame_lGetNumFollowers>(host, &ReplaceCvLuaGame_lGetNumFollowers);

Code

2430int CvLuaGame::lGetNumFollowers(lua_State* L)2431{2432	int iRtnValue;2433	ReligionTypes eReligion;2434	eReligion = (ReligionTypes)lua_tointeger(L, 1);2435	iRtnValue = GC.getGame().GetGameReligions()->GetNumFollowers(eReligion);2436	lua_pushinteger(L, iRtnValue);2437	return 1;2438}

Calls

Called by