Bazaar developer reference

CvLuaCity::lIsNone(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 625
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsNone

Hooks

static bool BeforeCvLuaCity_lIsNone(lua_State* L, int& result);static void AfterCvLuaCity_lIsNone(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsNone(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsNone>(host, &BeforeCvLuaCity_lIsNone);CivRegisterAfter<CivHooks::CvLuaCity_lIsNone>(host, &AfterCvLuaCity_lIsNone);CivRegisterReplace<CivHooks::CvLuaCity_lIsNone>(host, &ReplaceCvLuaCity_lIsNone);

Code

624//bool isNone();625int CvLuaCity::lIsNone(lua_State* L)626{627	const bool bDoesNotExist = (GetInstance(L, false) == NULL);628	lua_pushboolean(L, bDoesNotExist);629630	return 1;631}

Calls

Called by