Bazaar developer reference

CvLuaCity::lWaterArea(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 1993
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lWaterArea

Hooks

static bool BeforeCvLuaCity_lWaterArea(lua_State* L, int& result);static void AfterCvLuaCity_lWaterArea(lua_State* L, int& result);static int ReplaceCvLuaCity_lWaterArea(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lWaterArea>(host, &BeforeCvLuaCity_lWaterArea);CivRegisterAfter<CivHooks::CvLuaCity_lWaterArea>(host, &AfterCvLuaCity_lWaterArea);CivRegisterReplace<CivHooks::CvLuaCity_lWaterArea>(host, &ReplaceCvLuaCity_lWaterArea);

Code

1992//CyArea* waterArea();1993int CvLuaCity::lWaterArea(lua_State* L)1994{1995	CvCity* pkCity = GetInstance(L);1996	CvArea* pkArea = pkCity->waterArea();1997	CvLuaArea::Push(L, pkArea);1998	return 1;1999}

Calls

Called by