Bazaar developer reference

CvLuaLeague::lDoVoteEnact(lua_State *)

Defined in
Lua/CvLuaLeague.cpp, line 560
Class
CvLuaLeague
Not a hook point
member without a separate declaration

Code

559//void DoVoteEnact(int iProposal, PlayerTypes iPlayer, int iNumVotes, int iChoice);560int CvLuaLeague::lDoVoteEnact(lua_State* L)561{562	CvLeague* pLeague = GetInstance(L);563	const int iProposal = lua_tointeger(L, 2);564	const PlayerTypes ePlayer = (PlayerTypes) lua_tointeger(L, 3);565	const int iNumVotes = lua_tointeger(L, 4);566	const int iChoice = lua_tointeger(L, 5);567568	pLeague->DoVoteEnact(iProposal, ePlayer, iNumVotes, iChoice);569	return 0;570}

Calls

Called by