CvLuaLeague::lIsNone(lua_State *)
- Defined in
- Lua/CvLuaLeague.cpp, line 112
- Class
- CvLuaLeague
- Hook name
CivHooks::CvLuaLeague_lIsNone
Hooks
static bool BeforeCvLuaLeague_lIsNone(lua_State* L, int& result);static void AfterCvLuaLeague_lIsNone(lua_State* L, int& result);static int ReplaceCvLuaLeague_lIsNone(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaLeague_lIsNone>(host, &BeforeCvLuaLeague_lIsNone);CivRegisterAfter<CivHooks::CvLuaLeague_lIsNone>(host, &AfterCvLuaLeague_lIsNone);CivRegisterReplace<CivHooks::CvLuaLeague_lIsNone>(host, &ReplaceCvLuaLeague_lIsNone);
Code
111//bool IsNone();112int CvLuaLeague::lIsNone(lua_State* L)113{114 const bool bDoesNotExist = (GetInstance(L, false) == NULL);115 lua_pushboolean(L, bDoesNotExist);116 return 1;117}
Calls
CvLuaScopedInstance::GetInstancelua_pushboolean