Bazaar developer reference

CvLuaPlayer::lDoBeginDiploWithHuman(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8118
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lDoBeginDiploWithHuman

Hooks

static bool BeforeCvLuaPlayer_lDoBeginDiploWithHuman(lua_State* L, int& result);static void AfterCvLuaPlayer_lDoBeginDiploWithHuman(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lDoBeginDiploWithHuman(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lDoBeginDiploWithHuman>(host, &BeforeCvLuaPlayer_lDoBeginDiploWithHuman);CivRegisterAfter<CivHooks::CvLuaPlayer_lDoBeginDiploWithHuman>(host, &AfterCvLuaPlayer_lDoBeginDiploWithHuman);CivRegisterReplace<CivHooks::CvLuaPlayer_lDoBeginDiploWithHuman>(host, &ReplaceCvLuaPlayer_lDoBeginDiploWithHuman);

Code

8117//void DoBeginDiploWithHuman();8118int CvLuaPlayer::lDoBeginDiploWithHuman(lua_State* L)8119{8120	CvPlayerAI* pkPlayer = GetInstance(L);81218122	pkPlayer->GetDiplomacyAI()->DoBeginDiploWithHuman();8123	return 1;8124}

Calls

Called by