mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Implement Doors::VTable0x94
This commit is contained in:
parent
c65bc67e3d
commit
95485f378a
@ -31,12 +31,12 @@ class Doors : public LegoPathActor {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
undefined4 m_unk0x154; // 0x154
|
undefined4 m_unk0x154; // 0x154
|
||||||
undefined4 m_unk0x158; // 0x158
|
MxFloat m_unk0x158; // 0x158
|
||||||
undefined4 m_unk0x15c; // 0x15c
|
Matrix4* m_unk0x15c; // 0x15c
|
||||||
undefined4 m_unk0x160; // 0x160
|
Matrix4* m_unk0x160; // 0x160
|
||||||
MxMatrix m_unk0x164; // 0x164
|
MxMatrix m_unk0x164; // 0x164
|
||||||
MxMatrix m_unk0x1ac; // 0x1ac
|
MxMatrix m_unk0x1ac; // 0x1ac
|
||||||
undefined4 m_unk0x1f4; // 0x1f4
|
MxFloat m_unk0x1f4; // 0x1f4
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DOORS_H
|
#endif // DOORS_H
|
||||||
|
|||||||
@ -1,12 +1,27 @@
|
|||||||
#include "doors.h"
|
#include "doors.h"
|
||||||
|
|
||||||
|
#include "mxmisc.h"
|
||||||
|
#include "mxtimer.h"
|
||||||
|
|
||||||
DECOMP_SIZE_ASSERT(Doors, 0x1f8)
|
DECOMP_SIZE_ASSERT(Doors, 0x1f8)
|
||||||
|
|
||||||
// STUB: LEGO1 0x10066100
|
// FUNCTION: LEGO1 0x10066100
|
||||||
MxResult Doors::VTable0x94(LegoPathActor* p_actor, MxBool p_bool)
|
MxResult Doors::VTable0x94(LegoPathActor* p_actor, MxBool p_bool)
|
||||||
{
|
{
|
||||||
// TODO
|
if (m_unk0x154 == 1) {
|
||||||
return 0;
|
m_unk0x154 = 2;
|
||||||
|
|
||||||
|
m_unk0x158 = Timer()->GetTime();
|
||||||
|
|
||||||
|
m_unk0x164 = *m_unk0x15c;
|
||||||
|
m_unk0x1ac = *m_unk0x160;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_unk0x1f4 < 0.001) {
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x10066250
|
// STUB: LEGO1 0x10066250
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user