Bazaar developer reference

CvLuaCity::lArea(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1984
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lArea

Hooks

static bool BeforeCvLuaCity_lArea(lua_State* L, int& result);static void AfterCvLuaCity_lArea(lua_State* L, int& result);static int ReplaceCvLuaCity_lArea(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lArea>(host, &BeforeCvLuaCity_lArea);CivRegisterAfter<CivHooks::CvLuaCity_lArea>(host, &AfterCvLuaCity_lArea);CivRegisterReplace<CivHooks::CvLuaCity_lArea>(host, &ReplaceCvLuaCity_lArea);

Code

1983//CyArea* area();1984int CvLuaCity::lArea(lua_State* L)1985{1986	CvCity* pkCity = GetInstance(L);1987	CvArea* pkArea = pkCity->area();1988	CvLuaArea::Push(L, pkArea);1989	return 1;1990}

Calls

Called by