Bazaar developer reference

CvLuaCity::lChooseProduction(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 668
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lChooseProduction

Hooks

static bool BeforeCvLuaCity_lChooseProduction(lua_State* L, int& result);static void AfterCvLuaCity_lChooseProduction(lua_State* L, int& result);static int ReplaceCvLuaCity_lChooseProduction(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lChooseProduction>(host, &BeforeCvLuaCity_lChooseProduction);CivRegisterAfter<CivHooks::CvLuaCity_lChooseProduction>(host, &AfterCvLuaCity_lChooseProduction);CivRegisterReplace<CivHooks::CvLuaCity_lChooseProduction>(host, &ReplaceCvLuaCity_lChooseProduction);

Code

667//void chooseProduction(UnitTypes eTrainUnit, BuildingTypes eConstructBuilding, ProjectTypes eCreateProject, bool bFinish, bool bFront);668int CvLuaCity::lChooseProduction(lua_State* L)669{670	CvCity* pkCity = GetInstance(L);671	pkCity->chooseProduction();672673	return 1;674}

Calls

Called by