Bazaar developer reference

CvLuaPlot::lIsAdjacentToArea(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 543
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lIsAdjacentToArea

Hooks

static bool BeforeCvLuaPlot_lIsAdjacentToArea(lua_State* L, int& result);static void AfterCvLuaPlot_lIsAdjacentToArea(lua_State* L, int& result);static int ReplaceCvLuaPlot_lIsAdjacentToArea(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lIsAdjacentToArea>(host, &BeforeCvLuaPlot_lIsAdjacentToArea);CivRegisterAfter<CivHooks::CvLuaPlot_lIsAdjacentToArea>(host, &AfterCvLuaPlot_lIsAdjacentToArea);CivRegisterReplace<CivHooks::CvLuaPlot_lIsAdjacentToArea>(host, &ReplaceCvLuaPlot_lIsAdjacentToArea);

Code

542//bool isAdjacentToArea(CyArea* pArea);543int CvLuaPlot::lIsAdjacentToArea(lua_State* L)544{545	CvPlot* pkPlot = GetInstance(L);546	CvArea* pkArea = CvLuaArea::GetInstance(L, 2);547548	const bool bResult = pkPlot->isAdjacentToArea(pkArea);549	lua_pushboolean(L, bResult);550551	return 1;552}

Calls

Called by