Bazaar developer reference

CvLuaGame::lCountCivTeamsAlive(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 641
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lCountCivTeamsAlive

Hooks

static bool BeforeCvLuaGame_lCountCivTeamsAlive(lua_State* L, int& result);static void AfterCvLuaGame_lCountCivTeamsAlive(lua_State* L, int& result);static int ReplaceCvLuaGame_lCountCivTeamsAlive(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lCountCivTeamsAlive>(host, &BeforeCvLuaGame_lCountCivTeamsAlive);CivRegisterAfter<CivHooks::CvLuaGame_lCountCivTeamsAlive>(host, &AfterCvLuaGame_lCountCivTeamsAlive);CivRegisterReplace<CivHooks::CvLuaGame_lCountCivTeamsAlive>(host, &ReplaceCvLuaGame_lCountCivTeamsAlive);

Code

640// int CountCivTeamsAlive();641int CvLuaGame::lCountCivTeamsAlive(lua_State* L)642{643	return BasicLuaMethod(L, &CvGame::countCivTeamsAlive);644}

Calls

Called by