1
0

Add new IsWeatherWet hook for cauldrons.

@madmaxoft can you comment?
This commit is contained in:
Alexander Harkness 2014-06-11 10:33:16 +01:00
parent 3e25852382
commit c3c3782c67

View File

@ -708,12 +708,23 @@ public:
eWeather GetWeather (void) const { return m_Weather; }; eWeather GetWeather (void) const { return m_Weather; };
bool IsWeatherSunny(void) const { return (m_Weather == wSunny); } bool IsWeatherSunny(void) const { return (m_Weather == wSunny); }
bool IsWeatherSunny(int a_BlockX, int a_BlockZ) const {
return (m_Weather == wSunny)
}
bool IsWeatherRain (void) const { return (m_Weather == wRain); } bool IsWeatherRain (void) const { return (m_Weather == wRain); }
bool IsWeatherRain (int a_BlockX, int a_BlockZ) const {
return (m_Weather == wRain) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)))
}
bool IsWeatherStorm(void) const { return (m_Weather == wStorm); } bool IsWeatherStorm(void) const { return (m_Weather == wStorm); }
bool IsWeatherStorm(int a_BlockX, int a_BlockZ) const {
return (m_Weather == wStorm) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)))
}
/** Returns true if the current weather has any precipitation - rain or storm */ /** Returns true if the current weather has any precipitation - rain or storm */
bool IsWeatherWet (void) const { return (m_Weather != wSunny); } bool IsWeatherWet (void) const { return (m_Weather != wSunny); }
bool IsWeatherWet (int a_BlockX, int a_BlockZ) const {
return (m_Weather != wSunny) && (!IsBiomeNoDownfall(GetBiomeAt(a_BlockX, a_BlockZ)))
}
// tolua_end // tolua_end
cChunkGenerator & GetGenerator(void) { return m_Generator; } cChunkGenerator & GetGenerator(void) { return m_Generator; }