SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
LightDataHolder.hpp
1#pragma once
2
3#include <revolution.h>
4#include "JSystem/JGeometry/TVec.hpp"
5
6class LightInfo {
7public:
8 _GXColor mColor; // _0
9 TVec3f mPos; // _4
10 u8 mIsFollowCamera; // _10
11};
12
13class LightInfoCoin : public LightInfo {
14public:
15 inline LightInfoCoin() {
16
17 }
18
19 u8 _14;
20 u8 _15;
21 u8 _16;
22 u8 _17;
23 f32 _18;
24};
25
27public:
28 inline ActorLightInfo() {
29
30 }
31
32 void operator=(const ActorLightInfo &);
33
34 LightInfo mInfo0; // _0
35 LightInfo mInfo1; // _14
36 u8 mAlpha2; // _28
37 _GXColor mColor; // _29
38};
39
41 const char* mAreaLightName; // _0
42 s32 mInterpolate; // _4
43 bool mFix; // _8
44 ActorLightInfo mPlayerLight; // _C
45 ActorLightInfo mStrongLight; // _3C
46 ActorLightInfo mWeakLight; // _6C
47 ActorLightInfo mPlanetLight; // _9C
48};
49
50namespace {
51 static const char* sDefaultAreaLightName = "デフォルト";
52};
53
55public:
57
58 void initLightData();
59
60 AreaLightInfo* findAreaLight(const char *) const;
61 const char* getDefaultAreaLightName() const;
62 s32 getDefaultStepInterpolate() const;
63
64 s32 mLightCount; // _0
65 AreaLightInfo* mLights; // _4
67};