Bazaar developer reference

CvLuaPlot::lGetFeatureProduction(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 697
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lGetFeatureProduction

Hooks

static bool BeforeCvLuaPlot_lGetFeatureProduction(lua_State* L, int& result);static void AfterCvLuaPlot_lGetFeatureProduction(lua_State* L, int& result);static int ReplaceCvLuaPlot_lGetFeatureProduction(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lGetFeatureProduction>(host, &BeforeCvLuaPlot_lGetFeatureProduction);CivRegisterAfter<CivHooks::CvLuaPlot_lGetFeatureProduction>(host, &AfterCvLuaPlot_lGetFeatureProduction);CivRegisterReplace<CivHooks::CvLuaPlot_lGetFeatureProduction>(host, &ReplaceCvLuaPlot_lGetFeatureProduction);

Code

696//int getFeatureProduction(BuildTypes eBuild, TeamTypes eTeam, CyCity* ppCity);697int CvLuaPlot::lGetFeatureProduction(lua_State* L)698{699	CvPlot* pkPlot = GetInstance(L);700	const BuildTypes eBuild = (BuildTypes)lua_tointeger(L, 2);701	const PlayerTypes ePlayer = (PlayerTypes)lua_tointeger(L, 3);702	CvCity* pCity;703704	const int iResult = pkPlot->getFeatureProduction(eBuild, ePlayer, &pCity);705706	lua_pushinteger(L, iResult);707	return 1;708}

Calls

Called by