Bazaar developer reference

CvLuaLeague::lCanProposeEnactAnyChoice(lua_State *)

Defined in
Lua/CvLuaLeague.cpp, line 192
Class
CvLuaLeague
Hook name
CivHooks::CvLuaLeague_lCanProposeEnactAnyChoice

Hooks

static bool BeforeCvLuaLeague_lCanProposeEnactAnyChoice(lua_State* L, int& result);static void AfterCvLuaLeague_lCanProposeEnactAnyChoice(lua_State* L, int& result);static int ReplaceCvLuaLeague_lCanProposeEnactAnyChoice(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lCanProposeEnactAnyChoice>(host, &BeforeCvLuaLeague_lCanProposeEnactAnyChoice);CivRegisterAfter<CivHooks::CvLuaLeague_lCanProposeEnactAnyChoice>(host, &AfterCvLuaLeague_lCanProposeEnactAnyChoice);CivRegisterReplace<CivHooks::CvLuaLeague_lCanProposeEnactAnyChoice>(host, &ReplaceCvLuaLeague_lCanProposeEnactAnyChoice);

Code

191//bool CanProposeEnactAnyChoice(ResolutionTypes eResolution, PlayerTypes eProposer);192int CvLuaLeague::lCanProposeEnactAnyChoice(lua_State* L)193{194	CvLeague* pLeague = GetInstance(L);195	const ResolutionTypes eResolution = (ResolutionTypes) lua_tointeger(L, 2);196	const PlayerTypes eProposer = (PlayerTypes) lua_tointeger(L, 3);197198	const bool bValue = pLeague->CanProposeEnactAnyChoice(eResolution, eProposer);199	lua_pushboolean(L, bValue);200	return 1;201}

Calls

Called by