CvLuaTeam::lIsNone(lua_State *)
- Defined in
- Lua/CvLuaTeam.cpp, line 261
- Class
- CvLuaTeam
- Hook name
CivHooks::CvLuaTeam_lIsNone
Hooks
static bool BeforeCvLuaTeam_lIsNone(lua_State* L, int& result);static void AfterCvLuaTeam_lIsNone(lua_State* L, int& result);static int ReplaceCvLuaTeam_lIsNone(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaTeam_lIsNone>(host, &BeforeCvLuaTeam_lIsNone);CivRegisterAfter<CivHooks::CvLuaTeam_lIsNone>(host, &AfterCvLuaTeam_lIsNone);CivRegisterReplace<CivHooks::CvLuaTeam_lIsNone>(host, &ReplaceCvLuaTeam_lIsNone);
Code
260//bool isNone();261int CvLuaTeam::lIsNone(lua_State* L)262{263 const bool bDoesNotExist = (GetInstance(L, false) == NULL);264 lua_pushboolean(L, bDoesNotExist);265266 return 1;267}
Calls
CvLuaScopedInstance::GetInstancelua_pushboolean