Bazaar developer reference

CvLuaUnit::lJumpToNearestValidPlot(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 869
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lJumpToNearestValidPlot

Hooks

static bool BeforeCvLuaUnit_lJumpToNearestValidPlot(lua_State* L, int& result);static void AfterCvLuaUnit_lJumpToNearestValidPlot(lua_State* L, int& result);static int ReplaceCvLuaUnit_lJumpToNearestValidPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lJumpToNearestValidPlot>(host, &BeforeCvLuaUnit_lJumpToNearestValidPlot);CivRegisterAfter<CivHooks::CvLuaUnit_lJumpToNearestValidPlot>(host, &AfterCvLuaUnit_lJumpToNearestValidPlot);CivRegisterReplace<CivHooks::CvLuaUnit_lJumpToNearestValidPlot>(host, &ReplaceCvLuaUnit_lJumpToNearestValidPlot);

Code

868//void jumpToNearestValidPlot();869int CvLuaUnit::lJumpToNearestValidPlot(lua_State* L)870{871	CvUnit* pkUnit = GetInstance(L);872873	bool bResult = pkUnit->jumpToNearestValidPlot();874	lua_pushboolean(L, bResult);875	return 1;876}

Calls

Called by