Bazaar developer reference

CvLuaPlayer::lSetFaith(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 2877
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lSetFaith

Hooks

static bool BeforeCvLuaPlayer_lSetFaith(lua_State* L, int& result);static void AfterCvLuaPlayer_lSetFaith(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lSetFaith(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lSetFaith>(host, &BeforeCvLuaPlayer_lSetFaith);CivRegisterAfter<CivHooks::CvLuaPlayer_lSetFaith>(host, &AfterCvLuaPlayer_lSetFaith);CivRegisterReplace<CivHooks::CvLuaPlayer_lSetFaith>(host, &ReplaceCvLuaPlayer_lSetFaith);

Code

2876//void SetFaith(int iNewValue);2877int CvLuaPlayer::lSetFaith(lua_State* L)2878{2879	return BasicLuaMethod(L, &CvPlayerAI::SetFaith);2880}

Calls

Called by