Bazaar developer reference

CvLuaGame::lGetBestLandUnit(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 1300
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetBestLandUnit

Hooks

static bool BeforeCvLuaGame_lGetBestLandUnit(lua_State* L, int& result);static void AfterCvLuaGame_lGetBestLandUnit(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetBestLandUnit(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetBestLandUnit>(host, &BeforeCvLuaGame_lGetBestLandUnit);CivRegisterAfter<CivHooks::CvLuaGame_lGetBestLandUnit>(host, &AfterCvLuaGame_lGetBestLandUnit);CivRegisterReplace<CivHooks::CvLuaGame_lGetBestLandUnit>(host, &ReplaceCvLuaGame_lGetBestLandUnit);

Code

1299//UnitTypes getBestLandUnit();1300int CvLuaGame::lGetBestLandUnit(lua_State* L)1301{1302	return BasicLuaMethod(L, &CvGame::getBestLandUnit);1303}

Calls

Called by