Bazaar developer reference

CvLuaCity::lGetFreePromotionCount(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3765
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetFreePromotionCount

Hooks

static bool BeforeCvLuaCity_lGetFreePromotionCount(lua_State* L, int& result);static void AfterCvLuaCity_lGetFreePromotionCount(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetFreePromotionCount(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetFreePromotionCount>(host, &BeforeCvLuaCity_lGetFreePromotionCount);CivRegisterAfter<CivHooks::CvLuaCity_lGetFreePromotionCount>(host, &AfterCvLuaCity_lGetFreePromotionCount);CivRegisterReplace<CivHooks::CvLuaCity_lGetFreePromotionCount>(host, &ReplaceCvLuaCity_lGetFreePromotionCount);

Code

3764//int getFreePromotionCount(PromotionTypes eIndex);3765int CvLuaCity::lGetFreePromotionCount(lua_State* L)3766{3767	return BasicLuaMethod(L, &CvCity::getFreePromotionCount);3768}

Calls

Called by