SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
LightPointCtrl.cpp
1#include "Game/Map/LightPointCtrl.hpp"
2#include "Game/Map/LightFunction.hpp"
3
4LightPointCtrl::LightPointCtrl() {
5 _0 = -1;
6 _4 = 0x1E;
7 _8 = 0;
8 _C = 0;
9 _10 = 0;
10 _14 = 0;
11 _18 = 0;
12 _1C = 0;
13
14 _14 = new PointLightInfo();
15 _18 = new PointLightInfo();
16 _1C = new PointLightInfo();
17
18 clearPointLight(_14);
19 clearPointLight(_18);
20 clearPointLight(_1C);
21}
22
23void LightPointCtrl::loadPointLight() {
24 LightFunction::loadPointLightInfo(_14);
25}
26
27void LightPointCtrl::update() {
28 if (_0 == -1) {
29 _8 = _10;
30 tryBlendStart();
31 }
32
33 updatePointLight();
34
35 if (_0 == -1) {
36 _C = _8;
37 *_1C = *_18;
38 _10 = 0;
39 }
40}