Bazaar developer reference

CvLuaGame::lGetNumVotesForTeam(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 1387
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetNumVotesForTeam

Hooks

static bool BeforeCvLuaGame_lGetNumVotesForTeam(lua_State* L, int& result);static void AfterCvLuaGame_lGetNumVotesForTeam(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetNumVotesForTeam(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetNumVotesForTeam>(host, &BeforeCvLuaGame_lGetNumVotesForTeam);CivRegisterAfter<CivHooks::CvLuaGame_lGetNumVotesForTeam>(host, &AfterCvLuaGame_lGetNumVotesForTeam);CivRegisterReplace<CivHooks::CvLuaGame_lGetNumVotesForTeam>(host, &ReplaceCvLuaGame_lGetNumVotesForTeam);

Code

1386//int GetNumVotesForTeam(TeamTypes eTeam);1387int CvLuaGame::lGetNumVotesForTeam(lua_State* L)1388{1389	return BasicLuaMethod(L, &CvGame::GetNumVotesForTeam);1390}

Calls

Called by