Files

30 lines
612 B
C++
Raw Permalink Normal View History

#include "Game/Map/WaterInfo.hpp"
2022-07-11 19:55:02 -04:00
WaterInfo::WaterInfo() {
clear();
}
bool WaterInfo::isInWater() const {
if (mWaterArea || mOceanBowl || mOceanRing || mOceanSphere) {
2022-07-11 19:55:02 -04:00
return true;
}
return false;
}
void WaterInfo::clear() {
mCamWaterDepth = 0.0f;
2022-07-11 19:55:02 -04:00
_4 = 0.0f;
mSurfacePos.zero();
mSurfaceNormal.x = 0.0f;
mSurfaceNormal.y = 1.0f;
mSurfaceNormal.z = 0.0f;
mWaveHeight = 0.0f;
mStreamVec.zero();
mEdgeDistance = -1.0f;
mEdgePos.zero();
mWaterArea = nullptr;
mOceanBowl = nullptr;
mOceanRing = nullptr;
mOceanSphere = nullptr;
2022-07-11 19:55:02 -04:00
}