Bazaar developer reference

CvLuaGame::lSetWinner(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 1334
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lSetWinner

Hooks

static bool BeforeCvLuaGame_lSetWinner(lua_State* L, int& result);static void AfterCvLuaGame_lSetWinner(lua_State* L, int& result);static int ReplaceCvLuaGame_lSetWinner(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lSetWinner>(host, &BeforeCvLuaGame_lSetWinner);CivRegisterAfter<CivHooks::CvLuaGame_lSetWinner>(host, &AfterCvLuaGame_lSetWinner);CivRegisterReplace<CivHooks::CvLuaGame_lSetWinner>(host, &ReplaceCvLuaGame_lSetWinner);

Code

1333//void setWinner(TeamTypes eNewWinner, VictoryTypes eNewVictory);1334int CvLuaGame::lSetWinner(lua_State* L)1335{1336	CUSTOMLOG("Calling setWinner from Lua: %i, %i", lua_tointeger(L, 1), lua_tointeger(L, 2));1337	return BasicLuaMethod(L, &CvGame::setWinner);1338}

Calls

Called by