mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
30 lines
612 B
C++
30 lines
612 B
C++
#include "Game/Map/WaterInfo.hpp"
|
|
|
|
WaterInfo::WaterInfo() {
|
|
clear();
|
|
}
|
|
|
|
bool WaterInfo::isInWater() const {
|
|
if (mWaterArea || mOceanBowl || mOceanRing || mOceanSphere) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
void WaterInfo::clear() {
|
|
mCamWaterDepth = 0.0f;
|
|
_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;
|
|
} |