Bazaar developer reference

CvLuaCity::lPlot(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1975
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lPlot

Hooks

static bool BeforeCvLuaCity_lPlot(lua_State* L, int& result);static void AfterCvLuaCity_lPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lPlot>(host, &BeforeCvLuaCity_lPlot);CivRegisterAfter<CivHooks::CvLuaCity_lPlot>(host, &AfterCvLuaCity_lPlot);CivRegisterReplace<CivHooks::CvLuaCity_lPlot>(host, &ReplaceCvLuaCity_lPlot);

Code

1974//CyPlot* plot();1975int CvLuaCity::lPlot(lua_State* L)1976{1977	CvCity* pkCity = GetInstance(L);1978	CvPlot* pkPlot = pkCity->plot();1979	CvLuaPlot::Push(L, pkPlot);1980	return 1;1981}

Calls

Called by