Bazaar developer reference

CvLuaGame::lGetNumCitiesFollowing(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 2440
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetNumCitiesFollowing

Hooks

static bool BeforeCvLuaGame_lGetNumCitiesFollowing(lua_State* L, int& result);static void AfterCvLuaGame_lGetNumCitiesFollowing(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetNumCitiesFollowing(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetNumCitiesFollowing>(host, &BeforeCvLuaGame_lGetNumCitiesFollowing);CivRegisterAfter<CivHooks::CvLuaGame_lGetNumCitiesFollowing>(host, &AfterCvLuaGame_lGetNumCitiesFollowing);CivRegisterReplace<CivHooks::CvLuaGame_lGetNumCitiesFollowing>(host, &ReplaceCvLuaGame_lGetNumCitiesFollowing);

Code

2440int CvLuaGame::lGetNumCitiesFollowing(lua_State* L)2441{2442	int iRtnValue;2443	ReligionTypes eReligion;2444	eReligion = (ReligionTypes)lua_tointeger(L, 1);2445	iRtnValue = GC.getGame().GetGameReligions()->GetNumCitiesFollowing(eReligion);2446	lua_pushinteger(L, iRtnValue);2447	return 1;2448}

Calls

Called by