Bazaar developer reference

CvLuaPlayer::lGetUnhappinessMod(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 3325
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetUnhappinessMod

Hooks

static bool BeforeCvLuaPlayer_lGetUnhappinessMod(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetUnhappinessMod(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetUnhappinessMod(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetUnhappinessMod>(host, &BeforeCvLuaPlayer_lGetUnhappinessMod);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetUnhappinessMod>(host, &AfterCvLuaPlayer_lGetUnhappinessMod);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetUnhappinessMod>(host, &ReplaceCvLuaPlayer_lGetUnhappinessMod);

Code

3325int CvLuaPlayer::lGetUnhappinessMod(lua_State* L)3326{3327	return BasicLuaMethod(L, &CvPlayerAI::GetUnhappinessMod);3328}

Calls

Called by