Bazaar developer reference

CvLuaCity::lCanBuyAnyPlot(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2033
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lCanBuyAnyPlot

Hooks

static bool BeforeCvLuaCity_lCanBuyAnyPlot(lua_State* L, int& result);static void AfterCvLuaCity_lCanBuyAnyPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lCanBuyAnyPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lCanBuyAnyPlot>(host, &BeforeCvLuaCity_lCanBuyAnyPlot);CivRegisterAfter<CivHooks::CvLuaCity_lCanBuyAnyPlot>(host, &AfterCvLuaCity_lCanBuyAnyPlot);CivRegisterReplace<CivHooks::CvLuaCity_lCanBuyAnyPlot>(host, &ReplaceCvLuaCity_lCanBuyAnyPlot);

Code

2032//bool CanBuyAnyPlot(void)2033int CvLuaCity::lCanBuyAnyPlot(lua_State* L)2034{2035	CvCity* pkCity = GetInstance(L);2036	lua_pushboolean(L, pkCity->CanBuyAnyPlot());2037	return 1;2038}

Calls

Called by