SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
LightDataHolder.cpp
1#include "Game/Map/LightDataHolder.hpp"
2#include "Game/Util.hpp"
3
4LightDataHolder::LightDataHolder() {
5 mLightCount = 0;
6 mLights = 0;
7}
8
9#ifdef NON_MATCHING
10// regalloc issues
11AreaLightInfo* LightDataHolder::findAreaLight(const char *pName) const {
12 for (s32 i = 0; i < mLightCount; i++) {
13 AreaLightInfo* inf = &mLights[i];
14
15 if (MR::isEqualString(pName, inf->mAreaLightName)) {
16 return inf;
17 }
18 }
19
20 return mLights;
21}
22#endif
23
24const char* LightDataHolder::getDefaultAreaLightName() const {
25 return sDefaultAreaLightName;
26}
27
28s32 LightDataHolder::getDefaultStepInterpolate() const {
29 return 0x1E;
30}