CvLuaMap::lGetLandPlots(lua_State *)
- Defined in
- Lua/CvLuaMap.cpp, line 270
- Class
- CvLuaMap
- Hook name
CivHooks::CvLuaMap_lGetLandPlots
Hooks
static bool BeforeCvLuaMap_lGetLandPlots(lua_State* L, int& result);static void AfterCvLuaMap_lGetLandPlots(lua_State* L, int& result);static int ReplaceCvLuaMap_lGetLandPlots(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaMap_lGetLandPlots>(host, &BeforeCvLuaMap_lGetLandPlots);CivRegisterAfter<CivHooks::CvLuaMap_lGetLandPlots>(host, &AfterCvLuaMap_lGetLandPlots);CivRegisterReplace<CivHooks::CvLuaMap_lGetLandPlots>(host, &ReplaceCvLuaMap_lGetLandPlots);
Code
270int CvLuaMap::lGetLandPlots(lua_State* L)271{272 const int iResult = GC.getMap().getLandPlots();273 lua_pushinteger(L, iResult);274 return 1;275}
Calls
- CvGlobals::getMap()
- CvMap::getLandPlots()
lua_pushinteger