Bazaar developer reference

CvLuaCity::lGetProductionSpecialist(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1242
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetProductionSpecialist

Hooks

static bool BeforeCvLuaCity_lGetProductionSpecialist(lua_State* L, int& result);static void AfterCvLuaCity_lGetProductionSpecialist(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetProductionSpecialist(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetProductionSpecialist>(host, &BeforeCvLuaCity_lGetProductionSpecialist);CivRegisterAfter<CivHooks::CvLuaCity_lGetProductionSpecialist>(host, &AfterCvLuaCity_lGetProductionSpecialist);CivRegisterReplace<CivHooks::CvLuaCity_lGetProductionSpecialist>(host, &ReplaceCvLuaCity_lGetProductionSpecialist);

Code

1241//SpecialistTypes getProductionSpecialist()1242int CvLuaCity::lGetProductionSpecialist(lua_State* L)1243{1244	CvCity* pkCity = GetInstance(L);1245	const SpecialistTypes eValue = pkCity->getProductionSpecialist();12461247	lua_pushinteger(L, eValue);1248	return 1;1249}

Calls

Called by