Bazaar developer reference

CvLuaUnit::lUpgrade(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 646
Class
CvLuaUnit
Not a hook point
member without a separate declaration

Code

645//void DoUpgrade;646int CvLuaUnit::lUpgrade(lua_State* L)647{648	CvUnit* pkUnit = GetInstance(L);649	bool bIsFree = luaL_optbool(L, 2, false);650	651	CvUnit* pkNewUnit = pkUnit->DoUpgrade(bIsFree);652653	CvLuaUnit::Push(L, pkNewUnit);654	return 1;655}

Calls

Called by