decompile LiveActor::initShadowControllerList()

This commit is contained in:
shibbo 2019-07-29 01:28:45 -04:00
parent 950ec9669f
commit 4a368e1db4
3 changed files with 17 additions and 2 deletions

View File

@ -10,6 +10,7 @@
#include "Actor/Nerve/Spine.h"
#include "Actor/Sensor/HitSensor.h"
#include "Actor/Sensor/HitSensorKeeper.h"
#include "Actor/Shadow/ShadowController.h"
#include "Actor/StarPointer/StarPointerTarget.h"
#include "Actor/Switch/StageSwitch.h"
#include "Collision/Binder.h"
@ -59,6 +60,7 @@ public:
void initHitSensor(s32);
void initBinder(f32, f32, u32);
void initShadowControllerList(u32);
void initStageSwitch(const JMapInfoIter &);
void initActorStarPointerTarget(f32, const JGeometry::TVec3<f32> *, Mtx *, JGeometry::TVec3<f32>);
void initActorLightCtrl();
@ -79,7 +81,7 @@ public:
EffectKeeper* mEffectKeeper; // _60
u32* _64; // AudSoundObject*
LiveActorFlag mFlags; // _68
u32* _74; // ShadowController*
ShadowControllerList* mShadowController; // _74
u32* _78; // CollisionParts*
StageSwitchCtrl* mStageSwitchCtrl; // _7C
StarPointerTarget* mPointerTarget; // _80

View File

@ -4,6 +4,14 @@
#include "types.h"
#include "Actor/LiveActor/LiveActor.h"
class ShadowControllerList
{
public:
ShadowControllerList(LiveActor *, u32);
u8 _0[0x10];
};
namespace MR
{
void requestCalcActorShadow(LiveActor *);

View File

@ -47,7 +47,7 @@ LiveActor::LiveActor(const char *name) : NameObj(name)
LiveActorFlag flags;
this->mFlags = flags;
this->_74 = 0;
this->mShadowController = 0;
this->_78 = 0;
this->mStageSwitchCtrl = 0;
this->mPointerTarget = 0;
@ -449,6 +449,11 @@ void LiveActor::initBinder(f32 a1, f32 a2, u32 a3)
}
}
void LiveActor::initShadowControllerList(u32 listNum)
{
this->mShadowController = new ShadowControllerList(this, listNum);
}
void LiveActor::initStageSwitch(const JMapInfoIter &iter)
{
this->mStageSwitchCtrl = MR::createStageSwitchCtrl(this, iter);