Bazaar developer reference

CvLuaPlayer::lGetUnhappiness(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 3218
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetUnhappiness

Hooks

static bool BeforeCvLuaPlayer_lGetUnhappiness(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetUnhappiness(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetUnhappiness(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetUnhappiness>(host, &BeforeCvLuaPlayer_lGetUnhappiness);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetUnhappiness>(host, &AfterCvLuaPlayer_lGetUnhappiness);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetUnhappiness>(host, &ReplaceCvLuaPlayer_lGetUnhappiness);

Code

3217//int GetUnhappiness() const;3218int CvLuaPlayer::lGetUnhappiness(lua_State* L)3219{3220	return BasicLuaMethod(L, &CvPlayerAI::GetUnhappiness);3221}

Calls

Called by