CvLuaCity::lGetDamage(lua_State *)
- Defined in
- Lua/CvLuaCity.cpp, line 3806
- Class
- CvLuaCity
- Hook name
CivHooks::CvLuaCity_lGetDamage
Hooks
static bool BeforeCvLuaCity_lGetDamage(lua_State* L, int& result);static void AfterCvLuaCity_lGetDamage(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetDamage(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetDamage>(host, &BeforeCvLuaCity_lGetDamage);CivRegisterAfter<CivHooks::CvLuaCity_lGetDamage>(host, &AfterCvLuaCity_lGetDamage);CivRegisterReplace<CivHooks::CvLuaCity_lGetDamage>(host, &ReplaceCvLuaCity_lGetDamage);
Code
3805//int getDamage();3806int CvLuaCity::lGetDamage(lua_State* L)3807{3808 CvCity* pkCity = GetInstance(L);3809 const int iResult = pkCity->getDamage();38103811 lua_pushinteger(L, iResult);3812 return 1;3813}
Calls
- CvCity::getDamage() const
CvLuaScopedInstance::GetInstancelua_pushinteger