Bazaar developer reference

CvLuaPlayer::lIsEmpireUnhappy(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 3120
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsEmpireUnhappy

Hooks

static bool BeforeCvLuaPlayer_lIsEmpireUnhappy(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsEmpireUnhappy(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsEmpireUnhappy(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsEmpireUnhappy>(host, &BeforeCvLuaPlayer_lIsEmpireUnhappy);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsEmpireUnhappy>(host, &AfterCvLuaPlayer_lIsEmpireUnhappy);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsEmpireUnhappy>(host, &ReplaceCvLuaPlayer_lIsEmpireUnhappy);

Code

3119//bool IsEmpireUnhappy() const;3120int CvLuaPlayer::lIsEmpireUnhappy(lua_State* L)3121{3122	return BasicLuaMethod(L, &CvPlayerAI::IsEmpireUnhappy);3123}

Calls

Called by