Bazaar developer reference

CvLuaUnit::lRotateFacingDirectionClockwise(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 3972
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lRotateFacingDirectionClockwise

Hooks

static bool BeforeCvLuaUnit_lRotateFacingDirectionClockwise(lua_State* L, int& result);static void AfterCvLuaUnit_lRotateFacingDirectionClockwise(lua_State* L, int& result);static int ReplaceCvLuaUnit_lRotateFacingDirectionClockwise(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lRotateFacingDirectionClockwise>(host, &BeforeCvLuaUnit_lRotateFacingDirectionClockwise);CivRegisterAfter<CivHooks::CvLuaUnit_lRotateFacingDirectionClockwise>(host, &AfterCvLuaUnit_lRotateFacingDirectionClockwise);CivRegisterReplace<CivHooks::CvLuaUnit_lRotateFacingDirectionClockwise>(host, &ReplaceCvLuaUnit_lRotateFacingDirectionClockwise);

Code

3971//void rotateFacingDirectionClockwise();3972int CvLuaUnit::lRotateFacingDirectionClockwise(lua_State* L)3973{3974	CvUnit* pkUnit = GetInstance(L);39753976	pkUnit->rotateFacingDirectionClockwise();3977	return 0;3978}

Calls

Called by