lego: add MxDSType enum, add to all ctors

This commit is contained in:
Christian Semmler 2023-07-02 13:41:47 +02:00
parent 8fa45bbe0f
commit e8e8918767
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C
15 changed files with 53 additions and 30 deletions

View File

@ -5,10 +5,10 @@
enum LookupMode
{
LookupMode_Exact = 0,
LookupMode_LowerCase = 1,
LookupMode_UpperCase = 2,
LookupMode_LowerCase2 = 3
LookupMode_Exact = 0,
LookupMode_LowerCase = 1,
LookupMode_UpperCase = 2,
LookupMode_LowerCase2 = 3
};
class MxAtomId

View File

@ -4,9 +4,10 @@
MxDSAction::MxDSAction()
{
// TODO
this->SetType(MxDSType_Action);
}
// OFFSET: LEGO1 0x100ada80
// OFFSET: LEGO1 0x100ada80 STUB
MxDSAction::~MxDSAction()
{
// TODO

View File

@ -3,11 +3,10 @@
// OFFSET: LEGO1 0x100c8ff0
MxDSAnim::MxDSAnim()
{
// TODO
this->SetType(MxDSType_Anim);
}
// OFFSET: LEGO1 0x100c91a0
MxDSAnim::~MxDSAnim()
{
// TODO
}

View File

@ -1,13 +1,12 @@
#include "mxdsevent.h"
// OFFSET: LEGO1 0x100c95f0 STUB
// OFFSET: LEGO1 0x100c95f0
MxDSEvent::MxDSEvent()
{
// TODO
this->SetType(MxDSType_Event);
}
// OFFSET: LEGO1 0x100c97a0 STUB
// OFFSET: LEGO1 0x100c97a0
MxDSEvent::~MxDSEvent()
{
// TODO
}

View File

@ -4,9 +4,10 @@
MxDSMediaAction::MxDSMediaAction()
{
// TODO
this->SetType(MxDSType_MediaAction);
}
// OFFSET: LEGO1 0x100c8cf0
// OFFSET: LEGO1 0x100c8cf0 STUB
MxDSMediaAction::~MxDSMediaAction()
{
// TODO

View File

@ -3,11 +3,12 @@
// OFFSET: LEGO1 0x100c9b90
MxDSMultiAction::MxDSMultiAction()
{
// TODO
this->SetType(MxDSType_MultiAction);
}
// OFFSET: LEGO1 0x100ca060
// OFFSET: LEGO1 0x100ca060 STUB
MxDSMultiAction::~MxDSMultiAction()
{
// TODO
}

View File

@ -6,7 +6,7 @@
// OFFSET: LEGO1 0x100bf6a0
MxDSObject::MxDSObject()
{
this->m_unk0c = 0;
this->SetType(MxDSType_Object);
this->m_sourceName = NULL;
this->m_unk14 = 0;
this->m_objectName = NULL;

View File

@ -3,6 +3,7 @@
#include "mxcore.h"
#include "mxatomid.h"
#include "mxdstypes.h"
// VTABLE 0x100dc868
// SIZE 0x2c
@ -39,9 +40,11 @@ class MxDSObject : public MxCore
// OFFSET: LEGO1 0x10005530
inline void SetAtomId(MxAtomId p_atomId) { this->m_atomId = p_atomId; }
inline void SetType(MxDSType p_type) { this->m_type = p_type; }
private:
unsigned int m_unk08;
MxS16 m_unk0c;
MxS16 m_type;
char* m_sourceName;
int m_unk14;
char *m_objectName;

View File

@ -3,11 +3,10 @@
// OFFSET: LEGO1 0x100c8870
MxDSObjectAction::MxDSObjectAction()
{
// TODO
this->SetType(MxDSType_ObjectAction);
}
// OFFSET: LEGO1 0x100c8a20
MxDSObjectAction::~MxDSObjectAction()
{
// TODO
}

View File

@ -3,11 +3,10 @@
// OFFSET: LEGO1 0x100cae80
MxDSParallelAction::MxDSParallelAction()
{
this->SetType(MxDSType_ParallelAction);
}
// OFFSET: LEGO1 0x100cb040
MxDSParallelAction::~MxDSParallelAction()
{
}

View File

@ -3,11 +3,12 @@
// OFFSET: LEGO1 0x100cb2b0
MxDSSelectAction::MxDSSelectAction()
{
// TODO
this->SetType(MxDSType_SelectAction);
}
// OFFSET: LEGO1 0x100cb8d0
// OFFSET: LEGO1 0x100cb8d0 STUB
MxDSSelectAction::~MxDSSelectAction()
{
// TODO
}

View File

@ -3,11 +3,12 @@
// OFFSET: LEGO1 0x100ca9d0
MxDSSerialAction::MxDSSerialAction()
{
// TODO
this->SetType(MxDSType_SerialAction);
}
// OFFSET: LEGO1 0x100cac10
// OFFSET: LEGO1 0x100cac10 STUB
MxDSSerialAction::~MxDSSerialAction()
{
// TODO
}

View File

@ -4,10 +4,10 @@
MxDSSound::MxDSSound()
{
// TODO
this->SetType(MxDSType_Sound);
}
// OFFSET: LEGO1 0x100c9470
MxDSSound::~MxDSSound()
{
// TODO
}

View File

@ -3,11 +3,10 @@
// OFFSET: LEGO1 0x100c98c0
MxDSStill::MxDSStill()
{
// TODO
this->SetType(MxDSType_Still);
}
// OFFSET: LEGO1 0x100c9a70
MxDSStill::~MxDSStill()
{
// TODO
}

20
LEGO1/mxdstypes.h Executable file
View File

@ -0,0 +1,20 @@
#ifndef MXDSTYPES_H
#define MXDSTYPES_H
enum MxDSType
{
MxDSType_Object = 0,
MxDSType_Action = 1,
MxDSType_MediaAction = 2,
MxDSType_Anim = 3,
MxDSType_Sound = 4,
MxDSType_MultiAction = 5,
MxDSType_SerialAction = 6,
MxDSType_ParallelAction = 7,
MxDSType_Event = 8,
MxDSType_SelectAction = 9,
MxDSType_Still = 10,
MxDSType_ObjectAction = 11,
};
#endif // MXDSTYPES_H