Bazaar developer reference

CvLuaCity::lAtPlot(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1964
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lAtPlot

Hooks

static bool BeforeCvLuaCity_lAtPlot(lua_State* L, int& result);static void AfterCvLuaCity_lAtPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lAtPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lAtPlot>(host, &BeforeCvLuaCity_lAtPlot);CivRegisterAfter<CivHooks::CvLuaCity_lAtPlot>(host, &AfterCvLuaCity_lAtPlot);CivRegisterReplace<CivHooks::CvLuaCity_lAtPlot>(host, &ReplaceCvLuaCity_lAtPlot);

Code

1963//bool atPlot(CyPlot* pPlot);1964int CvLuaCity::lAtPlot(lua_State* L)1965{1966	CvCity* pkCity = GetInstance(L);1967	CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);1968	const bool bResult = pkCity->at(pkPlot);19691970	lua_pushboolean(L, bResult);1971	return 1;1972}

Calls

Called by