Bazaar developer reference

CvLuaPlot::lShareAdjacentArea(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 555
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lShareAdjacentArea

Hooks

static bool BeforeCvLuaPlot_lShareAdjacentArea(lua_State* L, int& result);static void AfterCvLuaPlot_lShareAdjacentArea(lua_State* L, int& result);static int ReplaceCvLuaPlot_lShareAdjacentArea(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lShareAdjacentArea>(host, &BeforeCvLuaPlot_lShareAdjacentArea);CivRegisterAfter<CivHooks::CvLuaPlot_lShareAdjacentArea>(host, &AfterCvLuaPlot_lShareAdjacentArea);CivRegisterReplace<CivHooks::CvLuaPlot_lShareAdjacentArea>(host, &ReplaceCvLuaPlot_lShareAdjacentArea);

Code

554//bool shareAdjacentArea(CyPlot* pPlot);555int CvLuaPlot::lShareAdjacentArea(lua_State* L)556{557	CvPlot* pkPlot = GetInstance(L);558	CvPlot* pkPlot2 = GetInstance(L, 2);559560	const bool bResult = pkPlot->shareAdjacentArea(pkPlot2);561	lua_pushboolean(L, bResult);562563	return 1;564}

Calls

Called by