Bazaar developer reference

CvLuaMap::lGetNumAreas(lua_State *)

Defined in
Lua/CvLuaMap.cpp, line 277
Class
CvLuaMap
Hook name
CivHooks::CvLuaMap_lGetNumAreas

Hooks

static bool BeforeCvLuaMap_lGetNumAreas(lua_State* L, int& result);static void AfterCvLuaMap_lGetNumAreas(lua_State* L, int& result);static int ReplaceCvLuaMap_lGetNumAreas(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaMap_lGetNumAreas>(host, &BeforeCvLuaMap_lGetNumAreas);CivRegisterAfter<CivHooks::CvLuaMap_lGetNumAreas>(host, &AfterCvLuaMap_lGetNumAreas);CivRegisterReplace<CivHooks::CvLuaMap_lGetNumAreas>(host, &ReplaceCvLuaMap_lGetNumAreas);

Code

277int CvLuaMap::lGetNumAreas(lua_State* L)278{279	const int iResult = GC.getMap().getNumAreas();280	lua_pushinteger(L, iResult);281	return 1;282}

Calls

Called by