Bazaar developer reference

CvLuaCity::lGetRallyPlot(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 2002
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetRallyPlot

Hooks

static bool BeforeCvLuaCity_lGetRallyPlot(lua_State* L, int& result);static void AfterCvLuaCity_lGetRallyPlot(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetRallyPlot(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetRallyPlot>(host, &BeforeCvLuaCity_lGetRallyPlot);CivRegisterAfter<CivHooks::CvLuaCity_lGetRallyPlot>(host, &AfterCvLuaCity_lGetRallyPlot);CivRegisterReplace<CivHooks::CvLuaCity_lGetRallyPlot>(host, &ReplaceCvLuaCity_lGetRallyPlot);

Code

2001//CyPlot* getRallyPlot();2002int CvLuaCity::lGetRallyPlot(lua_State* L)2003{2004	CvCity* pkCity = GetInstance(L);2005	CvPlot* pkPlot = pkCity->getRallyPlot();2006	CvLuaPlot::Push(L, pkPlot);2007	return 1;2008}

Calls

Called by