Bazaar developer reference

CvLuaUnit::lGetTourismBlastStrength(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 5122
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lGetTourismBlastStrength

Hooks

static bool BeforeCvLuaUnit_lGetTourismBlastStrength(lua_State* L, int& result);static void AfterCvLuaUnit_lGetTourismBlastStrength(lua_State* L, int& result);static int ReplaceCvLuaUnit_lGetTourismBlastStrength(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lGetTourismBlastStrength>(host, &BeforeCvLuaUnit_lGetTourismBlastStrength);CivRegisterAfter<CivHooks::CvLuaUnit_lGetTourismBlastStrength>(host, &AfterCvLuaUnit_lGetTourismBlastStrength);CivRegisterReplace<CivHooks::CvLuaUnit_lGetTourismBlastStrength>(host, &ReplaceCvLuaUnit_lGetTourismBlastStrength);

Code

5121//int GetTourismBlastStrength();5122int CvLuaUnit::lGetTourismBlastStrength(lua_State* L)5123{5124	CvUnit* pkUnit = GetInstance(L);5125	int iStrength = pkUnit->GetTourismBlastStrength();51265127	lua_pushinteger(L, iStrength);51285129	return 1;5130}

Calls

Called by