Bazaar developer reference

CvLuaCity::lGetNumGreatWorkSlots(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2395
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetNumGreatWorkSlots

Hooks

static bool BeforeCvLuaCity_lGetNumGreatWorkSlots(lua_State* L, int& result);static void AfterCvLuaCity_lGetNumGreatWorkSlots(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetNumGreatWorkSlots(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetNumGreatWorkSlots>(host, &BeforeCvLuaCity_lGetNumGreatWorkSlots);CivRegisterAfter<CivHooks::CvLuaCity_lGetNumGreatWorkSlots>(host, &AfterCvLuaCity_lGetNumGreatWorkSlots);CivRegisterReplace<CivHooks::CvLuaCity_lGetNumGreatWorkSlots>(host, &ReplaceCvLuaCity_lGetNumGreatWorkSlots);

Code

2394//int GetNumGreatWorkSlots();2395int CvLuaCity::lGetNumGreatWorkSlots(lua_State* L)2396{2397	CvCity* pkCity = GetInstance(L);2398	lua_pushinteger(L, pkCity->GetCityCulture()->GetNumGreatWorkSlots());2399	return 1;2400}

Calls

Called by