CvLuaCity::lGetProjectProductionNeeded(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 1363
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lGetProjectProductionNeeded
Hooks
static bool BeforeCvLuaCity_lGetProjectProductionNeeded(lua_State* L, int& result);static void AfterCvLuaCity_lGetProjectProductionNeeded(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetProjectProductionNeeded(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetProjectProductionNeeded>(host, &BeforeCvLuaCity_lGetProjectProductionNeeded);CivRegisterAfter<CivHooks::CvLuaCity_lGetProjectProductionNeeded>(host, &AfterCvLuaCity_lGetProjectProductionNeeded);CivRegisterReplace<CivHooks::CvLuaCity_lGetProjectProductionNeeded>(host, &ReplaceCvLuaCity_lGetProjectProductionNeeded);
Code
1362//int GetProjectProductionNeeded();1363int CvLuaCity::lGetProjectProductionNeeded(lua_State* L)1364{1365 CvCity* pkCity = GetInstance(L);1366 const ProjectTypes eProjectType = (ProjectTypes) lua_tointeger(L, 2);13671368 const int iResult = pkCity->getProductionNeeded(eProjectType);13691370 lua_pushinteger(L, iResult);1371 return 1;1372}
Calls
- CvCity::getProductionNeeded(ProjectTypes) const
CvLuaScopedInstance::GetInstancelua_pushintegerlua_tointeger