Bazaar developer reference

CvLuaTeam::lIsHasTech(lua_State *)

Defined in
Lua/CvLuaTeam.cpp, line 1252
Class
CvLuaTeam
Hook name
CivHooks::CvLuaTeam_lIsHasTech

Hooks

static bool BeforeCvLuaTeam_lIsHasTech(lua_State* L, int& result);static void AfterCvLuaTeam_lIsHasTech(lua_State* L, int& result);static int ReplaceCvLuaTeam_lIsHasTech(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaTeam_lIsHasTech>(host, &BeforeCvLuaTeam_lIsHasTech);CivRegisterAfter<CivHooks::CvLuaTeam_lIsHasTech>(host, &AfterCvLuaTeam_lIsHasTech);CivRegisterReplace<CivHooks::CvLuaTeam_lIsHasTech>(host, &ReplaceCvLuaTeam_lIsHasTech);

Code

1251//bool IsHasTech(TechTypes eIndex);1252int CvLuaTeam::lIsHasTech(lua_State* L)1253{1254	CvTeam* pkTeam = GetInstance(L);1255	const TechTypes eTech = (TechTypes)lua_tointeger(L, 2);12561257	lua_pushboolean(L, pkTeam->GetTeamTechs()->HasTech(eTech));1258	return 1;1259}

Calls

Called by