Bazaar developer reference

CvLuaMap::lMaxPlotDistance(lua_State *)

Defined in
Lua/CvLuaMap.cpp, line 335
Class
CvLuaMap
Hook name
CivHooks::CvLuaMap_lMaxPlotDistance

Hooks

static bool BeforeCvLuaMap_lMaxPlotDistance(lua_State* L, int& result);static void AfterCvLuaMap_lMaxPlotDistance(lua_State* L, int& result);static int ReplaceCvLuaMap_lMaxPlotDistance(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaMap_lMaxPlotDistance>(host, &BeforeCvLuaMap_lMaxPlotDistance);CivRegisterAfter<CivHooks::CvLuaMap_lMaxPlotDistance>(host, &AfterCvLuaMap_lMaxPlotDistance);CivRegisterReplace<CivHooks::CvLuaMap_lMaxPlotDistance>(host, &ReplaceCvLuaMap_lMaxPlotDistance);

Code

335int CvLuaMap::lMaxPlotDistance(lua_State* L)336{337	int iResult = GC.getMap().maxPlotDistance();338	lua_pushinteger(L, iResult);339	return 1;340}

Calls

Called by