Bazaar developer reference

CvLuaMap::lPlotDirection(lua_State *)

Defined in
Lua/CvLuaMap.cpp, line 388
Class
CvLuaMap
Hook name
CivHooks::CvLuaMap_lPlotDirection

Hooks

static bool BeforeCvLuaMap_lPlotDirection(lua_State* L, int& result);static void AfterCvLuaMap_lPlotDirection(lua_State* L, int& result);static int ReplaceCvLuaMap_lPlotDirection(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaMap_lPlotDirection>(host, &BeforeCvLuaMap_lPlotDirection);CivRegisterAfter<CivHooks::CvLuaMap_lPlotDirection>(host, &AfterCvLuaMap_lPlotDirection);CivRegisterReplace<CivHooks::CvLuaMap_lPlotDirection>(host, &ReplaceCvLuaMap_lPlotDirection);

Code

388int CvLuaMap::lPlotDirection(lua_State* L)389{390	int iX = lua_tointeger(L, 1);391	int iY = lua_tointeger(L, 2);392	DirectionTypes eDirection = (DirectionTypes)lua_tointeger(L, 3);393394	CvPlot* pkPlot = plotDirection(iX, iY, eDirection);395396	CvLuaPlot::Push(L, pkPlot);397	return 1;398}

Calls

Called by