SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
source
Game
Map
WaterInfo.cpp
1
#include "Game/Map/WaterInfo.hpp"
2
3
WaterInfo::WaterInfo() {
4
clear();
5
}
6
7
bool
WaterInfo::isInWater()
const
{
8
if
(mWaterArea || mOceanBowl || mOceanRing || mOceanSphere) {
9
return
true
;
10
}
11
12
return
false
;
13
}
14
15
void
WaterInfo::clear() {
16
mCamWaterDepth = 0.0f;
17
_4 = 0.0f;
18
mSurfacePos.zero();
19
mSurfaceNormal.x = 0.0f;
20
mSurfaceNormal.y = 1.0f;
21
mSurfaceNormal.z = 0.0f;
22
mWaveHeight = 0.0f;
23
mStreamVec.zero();
24
mEdgeDistance = -1.0f;
25
mEdgePos.zero();
26
mWaterArea =
nullptr
;
27
mOceanBowl =
nullptr
;
28
mOceanRing =
nullptr
;
29
mOceanSphere =
nullptr
;
30
}
Generated by
1.10.0