Bazaar developer reference

CvLuaArea::lIsNone(lua_State *)

Defined in
Lua/CvLuaArea.cpp, line 69
Class
CvLuaArea
Hook name
CivHooks::CvLuaArea_lIsNone

Hooks

static bool BeforeCvLuaArea_lIsNone(lua_State* L, int& result);static void AfterCvLuaArea_lIsNone(lua_State* L, int& result);static int ReplaceCvLuaArea_lIsNone(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaArea_lIsNone>(host, &BeforeCvLuaArea_lIsNone);CivRegisterAfter<CivHooks::CvLuaArea_lIsNone>(host, &AfterCvLuaArea_lIsNone);CivRegisterReplace<CivHooks::CvLuaArea_lIsNone>(host, &ReplaceCvLuaArea_lIsNone);

Code

68//bool isNone();69int CvLuaArea::lIsNone(lua_State* L)70{71	const bool bExists = (GetInstance(L, false) != NULL);72	lua_pushboolean(L, bExists);7374	return 1;75}

Calls

Called by