Bazaar developer reference

CvLuaPlayer::lGetWeDenouncedFriendCount(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8349
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetWeDenouncedFriendCount

Hooks

static bool BeforeCvLuaPlayer_lGetWeDenouncedFriendCount(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetWeDenouncedFriendCount(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetWeDenouncedFriendCount(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetWeDenouncedFriendCount>(host, &BeforeCvLuaPlayer_lGetWeDenouncedFriendCount);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetWeDenouncedFriendCount>(host, &AfterCvLuaPlayer_lGetWeDenouncedFriendCount);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetWeDenouncedFriendCount>(host, &ReplaceCvLuaPlayer_lGetWeDenouncedFriendCount);

Code

8349int CvLuaPlayer::lGetWeDenouncedFriendCount(lua_State* L)8350{8351	CvPlayerAI* pkPlayer = GetInstance(L);83528353	const int iValue = pkPlayer->GetDiplomacyAI()->GetWeDenouncedFriendCount();83548355	lua_pushinteger(L, iValue);8356	return 1;8357}

Calls

Called by