Bazaar developer reference

CvLuaPlayer::lCountNumBuildings(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 1487
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lCountNumBuildings

Hooks

static bool BeforeCvLuaPlayer_lCountNumBuildings(lua_State* L, int& result);static void AfterCvLuaPlayer_lCountNumBuildings(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lCountNumBuildings(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lCountNumBuildings>(host, &BeforeCvLuaPlayer_lCountNumBuildings);CivRegisterAfter<CivHooks::CvLuaPlayer_lCountNumBuildings>(host, &AfterCvLuaPlayer_lCountNumBuildings);CivRegisterReplace<CivHooks::CvLuaPlayer_lCountNumBuildings>(host, &ReplaceCvLuaPlayer_lCountNumBuildings);

Code

1486//int countNumBuildings(BuildingTypes  eBuilding);1487int CvLuaPlayer::lCountNumBuildings(lua_State* L)1488{1489	return BasicLuaMethod(L, &CvPlayerAI::countNumBuildings);1490}

Calls

Called by