Bazaar developer reference

CvLuaPlayer::lSetStartingPlot(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 2244
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lSetStartingPlot

Hooks

static bool BeforeCvLuaPlayer_lSetStartingPlot(lua_State* L, int& result);static void AfterCvLuaPlayer_lSetStartingPlot(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lSetStartingPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lSetStartingPlot>(host, &BeforeCvLuaPlayer_lSetStartingPlot);CivRegisterAfter<CivHooks::CvLuaPlayer_lSetStartingPlot>(host, &AfterCvLuaPlayer_lSetStartingPlot);CivRegisterReplace<CivHooks::CvLuaPlayer_lSetStartingPlot>(host, &ReplaceCvLuaPlayer_lSetStartingPlot);

Code

2243//void setStartingPlot(CyPlot* pPlot);2244int CvLuaPlayer::lSetStartingPlot(lua_State* L)2245{2246	CvPlayerAI* pkPlayer = GetInstance(L);2247	CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);2248	pkPlayer->setStartingPlot(pkPlot);2249	return 0;2250}

Calls

Called by