mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
LegoEntity::Reset (#152)
This commit is contained in:
parent
8725986085
commit
592ede1c7b
4 changed files with 44 additions and 9 deletions
|
@ -9,7 +9,7 @@ DECOMP_SIZE_ASSERT(LegoEntity, 0x68)
|
||||||
// OFFSET: LEGO1 0x1000c290
|
// OFFSET: LEGO1 0x1000c290
|
||||||
LegoEntity::~LegoEntity()
|
LegoEntity::~LegoEntity()
|
||||||
{
|
{
|
||||||
Destroy();
|
Destroy(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100114f0 STUB
|
// OFFSET: LEGO1 0x100114f0 STUB
|
||||||
|
@ -20,6 +20,26 @@ MxLong LegoEntity::Notify(MxParam &p)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100105f0
|
||||||
|
void LegoEntity::Reset()
|
||||||
|
{
|
||||||
|
float value = 0.0f;
|
||||||
|
m_vec1.EqualsScalar(&value);
|
||||||
|
|
||||||
|
value = 0.0f;
|
||||||
|
m_vec2.EqualsScalar(&value);
|
||||||
|
|
||||||
|
m_unk50 = 0;
|
||||||
|
m_unk54 = 0;
|
||||||
|
m_unk58 = 0;
|
||||||
|
m_actionArgString = NULL;
|
||||||
|
m_unk10 = 0;
|
||||||
|
m_unk11 = 0;
|
||||||
|
m_actionType = ExtraActionType_unknown;
|
||||||
|
m_actionArgNumber = -1;
|
||||||
|
m_unk59 = 4;
|
||||||
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x100107e0 STUB
|
// OFFSET: LEGO1 0x100107e0 STUB
|
||||||
void LegoEntity::vtable18()
|
void LegoEntity::vtable18()
|
||||||
{
|
{
|
||||||
|
@ -27,11 +47,16 @@ void LegoEntity::vtable18()
|
||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x10010810 STUB
|
// OFFSET: LEGO1 0x10010810 STUB
|
||||||
void LegoEntity::Destroy()
|
void LegoEntity::Destroy(MxBool)
|
||||||
{
|
{
|
||||||
|
if (m_unk54) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete[] m_actionArgString;
|
||||||
|
Reset();
|
||||||
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x10010e10
|
// OFFSET: LEGO1 0x10010e10
|
||||||
void LegoEntity::ParseAction(char *p_extra)
|
void LegoEntity::ParseAction(char *p_extra)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
#define LEGOENTITY_H
|
#define LEGOENTITY_H
|
||||||
|
|
||||||
#include "mxentity.h"
|
#include "mxentity.h"
|
||||||
|
#include "mxvector.h"
|
||||||
#include "extra.h"
|
#include "extra.h"
|
||||||
|
#include "decomp.h"
|
||||||
|
|
||||||
// VTABLE 0x100d4858
|
// VTABLE 0x100d4858
|
||||||
// SIZE 0x68 (probably)
|
// SIZE 0x68 (probably)
|
||||||
|
@ -33,10 +35,21 @@ class LegoEntity : public MxEntity
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void vtable18(); // vtable+0x18
|
virtual void vtable18(); // vtable+0x18
|
||||||
virtual void Destroy(); // vtable+0x1c
|
virtual void Destroy(MxBool); // vtable+0x1c
|
||||||
virtual void ParseAction(char *); // vtable+0x20
|
virtual void ParseAction(char *); // vtable+0x20
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
void Reset();
|
||||||
|
|
||||||
|
undefined m_unk10;
|
||||||
|
undefined m_unk11;
|
||||||
|
MxVector3Data m_vec1; // 0x14
|
||||||
|
MxVector3Data m_vec2; // 0x28
|
||||||
|
MxVector3Data m_vec3; // 0x3c
|
||||||
|
undefined4 m_unk50;
|
||||||
|
undefined4 m_unk54;
|
||||||
|
undefined m_unk58;
|
||||||
|
undefined m_unk59;
|
||||||
// For tokens from the extra string that look like this:
|
// For tokens from the extra string that look like this:
|
||||||
// "Action:openram;\lego\scripts\Race\CarRaceR;0"
|
// "Action:openram;\lego\scripts\Race\CarRaceR;0"
|
||||||
ExtraActionType m_actionType; // 0x5c
|
ExtraActionType m_actionType; // 0x5c
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#include "mxentity.h"
|
#include "mxentity.h"
|
||||||
|
|
||||||
// Size subject to change. It's not clear yet which members belong to
|
DECOMP_SIZE_ASSERT(MxEntity, 0x10)
|
||||||
// MxEntity and which belong only the subclasses.
|
|
||||||
DECOMP_SIZE_ASSERT(MxEntity, 0x5c)
|
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x1001d190
|
// OFFSET: LEGO1 0x1001d190
|
||||||
MxEntity::MxEntity()
|
MxEntity::MxEntity()
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "mxtypes.h"
|
#include "mxtypes.h"
|
||||||
|
|
||||||
// VTABLE 0x100d5390
|
// VTABLE 0x100d5390
|
||||||
// SIZE 0x68 or less
|
// SIZE 0x10
|
||||||
class MxEntity : public MxCore
|
class MxEntity : public MxCore
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -31,7 +31,6 @@ class MxEntity : public MxCore
|
||||||
private:
|
private:
|
||||||
MxS32 m_mxEntityId; // 0x8
|
MxS32 m_mxEntityId; // 0x8
|
||||||
MxAtomId m_atom; // 0xc
|
MxAtomId m_atom; // 0xc
|
||||||
undefined m_unk10[76];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MXENTITY_H
|
#endif // MXENTITY_H
|
||||||
|
|
Loading…
Reference in a new issue