Bazaar developer reference

CvLuaUnit::lSetHotKeyNumber(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 3603
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lSetHotKeyNumber

Hooks

static bool BeforeCvLuaUnit_lSetHotKeyNumber(lua_State* L, int& result);static void AfterCvLuaUnit_lSetHotKeyNumber(lua_State* L, int& result);static int ReplaceCvLuaUnit_lSetHotKeyNumber(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lSetHotKeyNumber>(host, &BeforeCvLuaUnit_lSetHotKeyNumber);CivRegisterAfter<CivHooks::CvLuaUnit_lSetHotKeyNumber>(host, &AfterCvLuaUnit_lSetHotKeyNumber);CivRegisterReplace<CivHooks::CvLuaUnit_lSetHotKeyNumber>(host, &ReplaceCvLuaUnit_lSetHotKeyNumber);

Code

3602//void setHotKeyNumber(int iNewValue);3603int CvLuaUnit::lSetHotKeyNumber(lua_State* L)3604{3605	CvUnit* pkUnit = GetInstance(L);3606	const int iNewValue = lua_tointeger(L, 2);36073608	pkUnit->setHotKeyNumber(iNewValue);3609	return 0;3610}

Calls

Called by