Bazaar developer reference

CvLuaPlayer::lIsUntrustworthyFriend(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8318
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsUntrustworthyFriend

Hooks

static bool BeforeCvLuaPlayer_lIsUntrustworthyFriend(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsUntrustworthyFriend(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsUntrustworthyFriend(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsUntrustworthyFriend>(host, &BeforeCvLuaPlayer_lIsUntrustworthyFriend);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsUntrustworthyFriend>(host, &AfterCvLuaPlayer_lIsUntrustworthyFriend);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsUntrustworthyFriend>(host, &ReplaceCvLuaPlayer_lIsUntrustworthyFriend);

Code

8318int CvLuaPlayer::lIsUntrustworthyFriend(lua_State* L)8319{8320	CvPlayerAI* pkPlayer = GetInstance(L);83218322	const bool bValue = pkPlayer->GetDiplomacyAI()->IsUntrustworthyFriend();83238324	lua_pushboolean(L, bValue);8325	return 1;8326}

Calls

Called by