Bazaar developer reference

CvLuaArea::lIsWater(lua_State *)

Defined in
Lua/CvLuaArea.cpp, line 207
Class
CvLuaArea
Hook name
CivHooks::CvLuaArea_lIsWater

Hooks

static bool BeforeCvLuaArea_lIsWater(lua_State* L, int& result);static void AfterCvLuaArea_lIsWater(lua_State* L, int& result);static int ReplaceCvLuaArea_lIsWater(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaArea_lIsWater>(host, &BeforeCvLuaArea_lIsWater);CivRegisterAfter<CivHooks::CvLuaArea_lIsWater>(host, &AfterCvLuaArea_lIsWater);CivRegisterReplace<CivHooks::CvLuaArea_lIsWater>(host, &ReplaceCvLuaArea_lIsWater);

Code

206//bool isWater();207int CvLuaArea::lIsWater(lua_State* L)208{209	CvArea* pkArea = GetInstance(L);210	const bool bResult = pkArea->isWater();211	lua_pushboolean(L, bResult);212	return 1;213}

Calls

Called by