Bazaar developer reference

CvLuaCity::lGetNextBuyablePlot(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2041
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetNextBuyablePlot

Hooks

static bool BeforeCvLuaCity_lGetNextBuyablePlot(lua_State* L, int& result);static void AfterCvLuaCity_lGetNextBuyablePlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetNextBuyablePlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetNextBuyablePlot>(host, &BeforeCvLuaCity_lGetNextBuyablePlot);CivRegisterAfter<CivHooks::CvLuaCity_lGetNextBuyablePlot>(host, &AfterCvLuaCity_lGetNextBuyablePlot);CivRegisterReplace<CivHooks::CvLuaCity_lGetNextBuyablePlot>(host, &ReplaceCvLuaCity_lGetNextBuyablePlot);

Code

2040//CvPlot* getNextBuyablePlot();2041int CvLuaCity::lGetNextBuyablePlot(lua_State* L)2042{2043	CvCity* pkCity = GetInstance(L);2044	CvPlot* pkPlot = pkCity->GetNextBuyablePlot();2045	CvLuaPlot::Push(L, pkPlot);2046	return 1;2047}

Calls

Called by