CvLuaCity::lAt(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 1952
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lAt
Hooks
static bool BeforeCvLuaCity_lAt(lua_State* L, int& result);static void AfterCvLuaCity_lAt(lua_State* L, int& result);static int ReplaceCvLuaCity_lAt(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lAt>(host, &BeforeCvLuaCity_lAt);CivRegisterAfter<CivHooks::CvLuaCity_lAt>(host, &AfterCvLuaCity_lAt);CivRegisterReplace<CivHooks::CvLuaCity_lAt>(host, &ReplaceCvLuaCity_lAt);
Code
1951//bool at(int iX, int iY);1952int CvLuaCity::lAt(lua_State* L)1953{1954 CvCity* pkCity = GetInstance(L);1955 const int x = lua_tointeger(L, 2);1956 const int y = lua_tointeger(L, 3);1957 const bool bResult = pkCity->at(x, y);19581959 lua_pushboolean(L, bResult);1960 return 1;1961}
Calls
- CvCity::at(int, int) const
CvLuaScopedInstance::GetInstancelua_pushbooleanlua_tointeger