Bazaar developer reference

CvLuaPlayer::lFindPathLength(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 7726
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lFindPathLength

Hooks

static bool BeforeCvLuaPlayer_lFindPathLength(lua_State* L, int& result);static void AfterCvLuaPlayer_lFindPathLength(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lFindPathLength(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lFindPathLength>(host, &BeforeCvLuaPlayer_lFindPathLength);CivRegisterAfter<CivHooks::CvLuaPlayer_lFindPathLength>(host, &AfterCvLuaPlayer_lFindPathLength);CivRegisterReplace<CivHooks::CvLuaPlayer_lFindPathLength>(host, &ReplaceCvLuaPlayer_lFindPathLength);

Code

7725//int findPathLength(TechTypes  eTech, bool bCost);7726int CvLuaPlayer::lFindPathLength(lua_State* L)7727{7728	return BasicLuaMethod(L, &CvPlayerAI::findPathLength);7729}

Calls

Called by