Bazaar developer reference

CvLuaUnit::lGetExtraWithdrawal(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 4221
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lGetExtraWithdrawal

Hooks

static bool BeforeCvLuaUnit_lGetExtraWithdrawal(lua_State* L, int& result);static void AfterCvLuaUnit_lGetExtraWithdrawal(lua_State* L, int& result);static int ReplaceCvLuaUnit_lGetExtraWithdrawal(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lGetExtraWithdrawal>(host, &BeforeCvLuaUnit_lGetExtraWithdrawal);CivRegisterAfter<CivHooks::CvLuaUnit_lGetExtraWithdrawal>(host, &AfterCvLuaUnit_lGetExtraWithdrawal);CivRegisterReplace<CivHooks::CvLuaUnit_lGetExtraWithdrawal>(host, &ReplaceCvLuaUnit_lGetExtraWithdrawal);

Code

4220//int getExtraWithdrawal();4221int CvLuaUnit::lGetExtraWithdrawal(lua_State* L)4222{4223	CvUnit* pkUnit = GetInstance(L);42244225	const int iResult = pkUnit->getExtraWithdrawal();4226	lua_pushinteger(L, iResult);4227	return 1;4228}

Calls

Called by