Bazaar developer reference

CvLuaMap::lIsPlot(lua_State *)

Defined in
Lua/CvLuaMap.cpp, line 312
Class
CvLuaMap
Hook name
CivHooks::CvLuaMap_lIsPlot

Hooks

static bool BeforeCvLuaMap_lIsPlot(lua_State* L, int& result);static void AfterCvLuaMap_lIsPlot(lua_State* L, int& result);static int ReplaceCvLuaMap_lIsPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaMap_lIsPlot>(host, &BeforeCvLuaMap_lIsPlot);CivRegisterAfter<CivHooks::CvLuaMap_lIsPlot>(host, &AfterCvLuaMap_lIsPlot);CivRegisterReplace<CivHooks::CvLuaMap_lIsPlot>(host, &ReplaceCvLuaMap_lIsPlot);

Code

312int CvLuaMap::lIsPlot(lua_State* L)313{314	int x = lua_tointeger(L, 1);315	int y = lua_tointeger(L, 2);316317	const bool bResult = GC.getMap().isPlot(x, y);318319	lua_pushboolean(L, bResult);320	return 1;321}

Calls

Called by