Bazaar developer reference

CvLuaGame::lGetNumCitiesTechCostMod(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 2128
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetNumCitiesTechCostMod

Hooks

static bool BeforeCvLuaGame_lGetNumCitiesTechCostMod(lua_State* L, int& result);static void AfterCvLuaGame_lGetNumCitiesTechCostMod(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetNumCitiesTechCostMod(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetNumCitiesTechCostMod>(host, &BeforeCvLuaGame_lGetNumCitiesTechCostMod);CivRegisterAfter<CivHooks::CvLuaGame_lGetNumCitiesTechCostMod>(host, &AfterCvLuaGame_lGetNumCitiesTechCostMod);CivRegisterReplace<CivHooks::CvLuaGame_lGetNumCitiesTechCostMod>(host, &ReplaceCvLuaGame_lGetNumCitiesTechCostMod);

Code

2128int CvLuaGame::lGetNumCitiesTechCostMod(lua_State* L)2129{2130	lua_pushinteger(L, GC.getMap().getWorldInfo().GetNumCitiesTechCostMod());2131	return 1;2132}

Calls

Called by