Bazaar developer reference

CvLuaCity::lGetRiverPlotYield(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3196
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetRiverPlotYield

Hooks

static bool BeforeCvLuaCity_lGetRiverPlotYield(lua_State* L, int& result);static void AfterCvLuaCity_lGetRiverPlotYield(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetRiverPlotYield(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetRiverPlotYield>(host, &BeforeCvLuaCity_lGetRiverPlotYield);CivRegisterAfter<CivHooks::CvLuaCity_lGetRiverPlotYield>(host, &AfterCvLuaCity_lGetRiverPlotYield);CivRegisterReplace<CivHooks::CvLuaCity_lGetRiverPlotYield>(host, &ReplaceCvLuaCity_lGetRiverPlotYield);

Code

3195//int getRiverPlotYield(YieldTypes eIndex);3196int CvLuaCity::lGetRiverPlotYield(lua_State* L)3197{3198	CvCity* pkCity = GetInstance(L);3199	const YieldTypes eIndex = (YieldTypes)lua_tointeger(L, 2);3200	const int iResult = pkCity->getRiverPlotYield(eIndex);32013202	lua_pushinteger(L, iResult);3203	return 1;3204}

Calls

Called by