Bazaar developer reference

CvLuaCity::lCountNumRiverPlots(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 747
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lCountNumRiverPlots

Hooks

static bool BeforeCvLuaCity_lCountNumRiverPlots(lua_State* L, int& result);static void AfterCvLuaCity_lCountNumRiverPlots(lua_State* L, int& result);static int ReplaceCvLuaCity_lCountNumRiverPlots(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lCountNumRiverPlots>(host, &BeforeCvLuaCity_lCountNumRiverPlots);CivRegisterAfter<CivHooks::CvLuaCity_lCountNumRiverPlots>(host, &AfterCvLuaCity_lCountNumRiverPlots);CivRegisterReplace<CivHooks::CvLuaCity_lCountNumRiverPlots>(host, &ReplaceCvLuaCity_lCountNumRiverPlots);

Code

746//int countNumRiverPlots();747int CvLuaCity::lCountNumRiverPlots(lua_State* L)748{749	CvCity* pkCity = GetInstance(L);750	const int iResult = pkCity->countNumRiverPlots();751752	lua_pushinteger(L, iResult);753	return 1;754}

Calls

Called by