Bazaar developer reference

CvLuaGame::lGetWorldNumCitiesUnhappinessPercent(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 2170
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetWorldNumCitiesUnhappinessPercent

Hooks

static bool BeforeCvLuaGame_lGetWorldNumCitiesUnhappinessPercent(lua_State* L, int& result);static void AfterCvLuaGame_lGetWorldNumCitiesUnhappinessPercent(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetWorldNumCitiesUnhappinessPercent(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetWorldNumCitiesUnhappinessPercent>(host, &BeforeCvLuaGame_lGetWorldNumCitiesUnhappinessPercent);CivRegisterAfter<CivHooks::CvLuaGame_lGetWorldNumCitiesUnhappinessPercent>(host, &AfterCvLuaGame_lGetWorldNumCitiesUnhappinessPercent);CivRegisterReplace<CivHooks::CvLuaGame_lGetWorldNumCitiesUnhappinessPercent>(host, &ReplaceCvLuaGame_lGetWorldNumCitiesUnhappinessPercent);

Code

2170int CvLuaGame::lGetWorldNumCitiesUnhappinessPercent(lua_State* L)2171{2172	lua_pushinteger(L, GC.getMap().getWorldInfo().getNumCitiesUnhappinessPercent());2173	return 1;2174}

Calls

Called by