Bazaar developer reference

CvLuaCity::lGetStrengthValue(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 3796
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lGetStrengthValue

Hooks

static bool BeforeCvLuaCity_lGetStrengthValue(lua_State* L, int& result);static void AfterCvLuaCity_lGetStrengthValue(lua_State* L, int& result);static int ReplaceCvLuaCity_lGetStrengthValue(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lGetStrengthValue>(host, &BeforeCvLuaCity_lGetStrengthValue);CivRegisterAfter<CivHooks::CvLuaCity_lGetStrengthValue>(host, &AfterCvLuaCity_lGetStrengthValue);CivRegisterReplace<CivHooks::CvLuaCity_lGetStrengthValue>(host, &ReplaceCvLuaCity_lGetStrengthValue);

Code

3795//int getStrengthValue();3796int CvLuaCity::lGetStrengthValue(lua_State* L)3797{3798	CvCity* pkCity = GetInstance(L);3799	const int iResult = pkCity->getStrengthValue();38003801	lua_pushinteger(L, iResult);3802	return 1;3803}

Calls

Called by