CvLuaCity::lCanJoin(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 1089
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lCanJoin
Hooks
static bool BeforeCvLuaCity_lCanJoin(lua_State* L, int& result);static void AfterCvLuaCity_lCanJoin(lua_State* L, int& result);static int ReplaceCvLuaCity_lCanJoin(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lCanJoin>(host, &BeforeCvLuaCity_lCanJoin);CivRegisterAfter<CivHooks::CvLuaCity_lCanJoin>(host, &AfterCvLuaCity_lCanJoin);CivRegisterReplace<CivHooks::CvLuaCity_lCanJoin>(host, &ReplaceCvLuaCity_lCanJoin);
Code
1088//bool canJoin();1089int CvLuaCity::lCanJoin(lua_State* L)1090{1091 CvCity* pkCity = GetInstance(L);1092 const bool bResult = pkCity->canJoin();10931094 lua_pushboolean(L, bResult);1095 return 1;1096}
Calls
- CvCity::canJoin() const
CvLuaScopedInstance::GetInstancelua_pushboolean