Bazaar developer reference

CvLuaCity::lIsNoAutoAssignSpecialists(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3709
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsNoAutoAssignSpecialists

Hooks

static bool BeforeCvLuaCity_lIsNoAutoAssignSpecialists(lua_State* L, int& result);static void AfterCvLuaCity_lIsNoAutoAssignSpecialists(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsNoAutoAssignSpecialists(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsNoAutoAssignSpecialists>(host, &BeforeCvLuaCity_lIsNoAutoAssignSpecialists);CivRegisterAfter<CivHooks::CvLuaCity_lIsNoAutoAssignSpecialists>(host, &AfterCvLuaCity_lIsNoAutoAssignSpecialists);CivRegisterReplace<CivHooks::CvLuaCity_lIsNoAutoAssignSpecialists>(host, &ReplaceCvLuaCity_lIsNoAutoAssignSpecialists);

Code

3708//int IsNoAutoAssignSpecialists();3709int CvLuaCity::lIsNoAutoAssignSpecialists(lua_State* L)3710{3711	CvCity* pkCity = GetInstance(L);3712	const bool bResult = pkCity->GetCityCitizens()->IsNoAutoAssignSpecialists();37133714	lua_pushboolean(L, bResult);37153716	return 1;3717}

Calls

Called by