Bazaar developer reference

CvLuaGame::lGetNumCities(lua_State *)

Defined in
Lua/CvLuaGame.cpp, line 1027
Class
CvLuaGame
Hook name
CivHooks::CvLuaGame_lGetNumCities

Hooks

static bool BeforeCvLuaGame_lGetNumCities(lua_State* L, int& result);static void AfterCvLuaGame_lGetNumCities(lua_State* L, int& result);static int ReplaceCvLuaGame_lGetNumCities(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaGame_lGetNumCities>(host, &BeforeCvLuaGame_lGetNumCities);CivRegisterAfter<CivHooks::CvLuaGame_lGetNumCities>(host, &AfterCvLuaGame_lGetNumCities);CivRegisterReplace<CivHooks::CvLuaGame_lGetNumCities>(host, &ReplaceCvLuaGame_lGetNumCities);

Code

1026//int getNumCities();1027int CvLuaGame::lGetNumCities(lua_State* L)1028{1029	return BasicLuaMethod(L, &CvGame::getNumCities);1030}

Calls

Called by