Bazaar developer reference

CvLuaGame::lSetUnitedNationsCountdown(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 621
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lSetUnitedNationsCountdown

Hooks

static bool BeforeCvLuaGame_lSetUnitedNationsCountdown(lua_State* L, int& result);static void AfterCvLuaGame_lSetUnitedNationsCountdown(lua_State* L, int& result);static int ReplaceCvLuaGame_lSetUnitedNationsCountdown(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lSetUnitedNationsCountdown>(host, &BeforeCvLuaGame_lSetUnitedNationsCountdown);CivRegisterAfter<CivHooks::CvLuaGame_lSetUnitedNationsCountdown>(host, &AfterCvLuaGame_lSetUnitedNationsCountdown);CivRegisterReplace<CivHooks::CvLuaGame_lSetUnitedNationsCountdown>(host, &ReplaceCvLuaGame_lSetUnitedNationsCountdown);

Code

620//void SetUnitedNationsCountdown(int iNewValue);621int CvLuaGame::lSetUnitedNationsCountdown(lua_State* L)622{623	int iTurns = luaL_checkint(L, 1);624	GC.getGame().SetUnitedNationsCountdown(iTurns);625	return 0;626}

Calls

Called by