Bazaar developer reference

CvLuaPlayer::lDoMinorLiberationByMajor(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 6957
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lDoMinorLiberationByMajor

Hooks

static bool BeforeCvLuaPlayer_lDoMinorLiberationByMajor(lua_State* L, int& result);static void AfterCvLuaPlayer_lDoMinorLiberationByMajor(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lDoMinorLiberationByMajor(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lDoMinorLiberationByMajor>(host, &BeforeCvLuaPlayer_lDoMinorLiberationByMajor);CivRegisterAfter<CivHooks::CvLuaPlayer_lDoMinorLiberationByMajor>(host, &AfterCvLuaPlayer_lDoMinorLiberationByMajor);CivRegisterReplace<CivHooks::CvLuaPlayer_lDoMinorLiberationByMajor>(host, &ReplaceCvLuaPlayer_lDoMinorLiberationByMajor);

Code

6956//void DoMinorLiberationByMajor(PlayerTypes eLiberator, TeamTypes eConquerorTeam);6957int CvLuaPlayer::lDoMinorLiberationByMajor(lua_State* L)6958{6959	CvPlayerAI* pkPlayer = GetInstance(L);6960	PlayerTypes eLiberator = (PlayerTypes) lua_tointeger(L, 2);6961	TeamTypes eConquerorTeam = (TeamTypes) lua_tointeger(L, 3);69626963	pkPlayer->GetMinorCivAI()->DoLiberationByMajor(eLiberator, eConquerorTeam);6964	return 1;6965}

Calls

Called by