Bazaar developer reference

CvLuaPlot::lIsWater(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 445
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lIsWater

Hooks

static bool BeforeCvLuaPlot_lIsWater(lua_State* L, int& result);static void AfterCvLuaPlot_lIsWater(lua_State* L, int& result);static int ReplaceCvLuaPlot_lIsWater(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lIsWater>(host, &BeforeCvLuaPlot_lIsWater);CivRegisterAfter<CivHooks::CvLuaPlot_lIsWater>(host, &AfterCvLuaPlot_lIsWater);CivRegisterReplace<CivHooks::CvLuaPlot_lIsWater>(host, &ReplaceCvLuaPlot_lIsWater);

Code

445int CvLuaPlot::lIsWater(lua_State* L)446{447	CvPlot* pkPlot = GetInstance(L);448449	lua_pushboolean(L, pkPlot->isWater());450451	return 1;452}

Calls

Called by