mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Implement/match some Act2Actor functions (#1148)
This commit is contained in:
committed by
GitHub
parent
71a1c51596
commit
8e23bfb266
@@ -1,23 +1,49 @@
|
||||
#include "act2actor.h"
|
||||
|
||||
#include "legocachesoundmanager.h"
|
||||
#include "legosoundmanager.h"
|
||||
#include "misc.h"
|
||||
#include "roi/legoroi.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(Act2Actor, 0x1a8)
|
||||
|
||||
// STUB: LEGO1 0x100187e0
|
||||
Act2Actor::Act2Actor()
|
||||
{
|
||||
// TODO
|
||||
m_unk0x1c = 0;
|
||||
m_unk0x1d = 0;
|
||||
m_unk0x1f = FALSE;
|
||||
m_unk0x24 = 0;
|
||||
m_unk0x20 = 0;
|
||||
m_unk0x1e = 0;
|
||||
m_unk0x28 = 4;
|
||||
m_unk0x2c = 0;
|
||||
m_unk0x30 = 0;
|
||||
m_unk0x34 = 0;
|
||||
m_unk0x44 = 0;
|
||||
m_unk0x40 = 1;
|
||||
m_unk0x48 = 0;
|
||||
m_unk0x4c = 0;
|
||||
m_unk0x38 = 0;
|
||||
m_unk0x3c = 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10018940
|
||||
// FUNCTION: LEGO1 0x10018940
|
||||
void Act2Actor::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
||||
{
|
||||
// TODO
|
||||
LegoAnimActor::SetROI(p_roi, p_bool1, p_bool2);
|
||||
m_roi->SetVisibility(FALSE);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100189f0
|
||||
// FUNCTION: LEGO1 0x100189f0
|
||||
MxResult Act2Actor::VTable0x94(LegoPathActor*, MxBool)
|
||||
{
|
||||
// TODO
|
||||
if (m_unk0x1f == FALSE) {
|
||||
m_unk0x1f = TRUE;
|
||||
m_unk0x20 = 0;
|
||||
}
|
||||
|
||||
SoundManager()->GetCacheSoundManager()->Play("hitactor", NULL, FALSE);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
@@ -34,10 +60,11 @@ void Act2Actor::VTable0x70(float p_und)
|
||||
// TODO
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10019280
|
||||
// FUNCTION: LEGO1 0x10019280
|
||||
void Act2Actor::SetWorldSpeed(MxFloat p_worldSpeed)
|
||||
{
|
||||
// TODO
|
||||
LegoAnimActor::SetWorldSpeed(p_worldSpeed);
|
||||
m_unk0x44 = 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x100195a0
|
||||
@@ -47,9 +74,12 @@ MxS32 Act2Actor::VTable0xa0()
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1001a180
|
||||
MxS32 Act2Actor::VTable0x68(Vector3&, Vector3&, Vector3&)
|
||||
// FUNCTION: LEGO1 0x1001a180
|
||||
MxS32 Act2Actor::VTable0x68(Vector3& p_v1, Vector3& p_v2, Vector3& p_v3)
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
if (m_unk0x1f) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return LegoAnimActor::VTable0x68(p_v1, p_v2, p_v3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user