Bazaar developer reference

CvLuaPlot::lGetNearestLandPlot(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 646
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lGetNearestLandPlot

Hooks

static bool BeforeCvLuaPlot_lGetNearestLandPlot(lua_State* L, int& result);static void AfterCvLuaPlot_lGetNearestLandPlot(lua_State* L, int& result);static int ReplaceCvLuaPlot_lGetNearestLandPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lGetNearestLandPlot>(host, &BeforeCvLuaPlot_lGetNearestLandPlot);CivRegisterAfter<CivHooks::CvLuaPlot_lGetNearestLandPlot>(host, &AfterCvLuaPlot_lGetNearestLandPlot);CivRegisterReplace<CivHooks::CvLuaPlot_lGetNearestLandPlot>(host, &ReplaceCvLuaPlot_lGetNearestLandPlot);

Code

645//CvPlot* getNearestLandPlot();646int CvLuaPlot::lGetNearestLandPlot(lua_State* L)647{648	CvPlot* pkPlot = GetInstance(L);649	CvPlot* pkNearestPlot = pkPlot->getNearestLandPlot();650	CvLuaPlot::Push(L, pkNearestPlot);651	return 1;652}

Calls

Called by