CvLuaCity::lGetY(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 1928
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lGetY
Hooks
static bool BeforeCvLuaCity_lGetY(lua_State* L, int& result);static void AfterCvLuaCity_lGetY(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetY(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetY>(host, &BeforeCvLuaCity_lGetY);CivRegisterAfter<CivHooks::CvLuaCity_lGetY>(host, &AfterCvLuaCity_lGetY);CivRegisterReplace<CivHooks::CvLuaCity_lGetY>(host, &ReplaceCvLuaCity_lGetY);
Code
1927//int getY();1928int CvLuaCity::lGetY(lua_State* L)1929{1930 CvCity* pkCity = GetInstance(L);1931 const int iResult = pkCity->getY();19321933 lua_pushinteger(L, iResult);1934 return 1;1935}
Calls
- CvCity::getY() const
CvLuaScopedInstance::GetInstancelua_pushinteger