Bazaar developer reference

CvLuaGame::lGetNumActiveLeagues(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 2691
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetNumActiveLeagues

Hooks

static bool BeforeCvLuaGame_lGetNumActiveLeagues(lua_State* L, int& result);static void AfterCvLuaGame_lGetNumActiveLeagues(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetNumActiveLeagues(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetNumActiveLeagues>(host, &BeforeCvLuaGame_lGetNumActiveLeagues);CivRegisterAfter<CivHooks::CvLuaGame_lGetNumActiveLeagues>(host, &AfterCvLuaGame_lGetNumActiveLeagues);CivRegisterReplace<CivHooks::CvLuaGame_lGetNumActiveLeagues>(host, &ReplaceCvLuaGame_lGetNumActiveLeagues);

Code

2691int CvLuaGame::lGetNumActiveLeagues(lua_State* L)2692{2693	lua_pushinteger(L, GC.getGame().GetGameLeagues()->GetNumActiveLeagues());2694	return 1;2695}

Calls

Called by