CvLuaMap::lGetClimate(lua_State *)
- Defined in
- Lua/CvLuaMap.cpp, line 134
- Class
- CvLuaMap
- Hook name
CivHooks::CvLuaMap_lGetClimate
Hooks
static bool BeforeCvLuaMap_lGetClimate(lua_State* L, int& result);static void AfterCvLuaMap_lGetClimate(lua_State* L, int& result);static int ReplaceCvLuaMap_lGetClimate(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaMap_lGetClimate>(host, &BeforeCvLuaMap_lGetClimate);CivRegisterAfter<CivHooks::CvLuaMap_lGetClimate>(host, &AfterCvLuaMap_lGetClimate);CivRegisterReplace<CivHooks::CvLuaMap_lGetClimate>(host, &ReplaceCvLuaMap_lGetClimate);
Code
134int CvLuaMap::lGetClimate(lua_State* L)135{136 lua_pushinteger(L, GC.getMap().getClimate());137 return 1;138}
Calls
- CvGlobals::getMap()
- CvMap::getClimate()
lua_pushinteger