2023-06-11 21:03:54 -04:00
|
|
|
#ifndef MXDSOBJECT_H
|
|
|
|
#define MXDSOBJECT_H
|
|
|
|
|
2023-06-19 20:18:53 -04:00
|
|
|
#include "mxcore.h"
|
|
|
|
#include "mxatomid.h"
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// VTABLE 0x100dc868
|
|
|
|
// SIZE 0x2c
|
2023-06-19 20:18:53 -04:00
|
|
|
class MxDSObject : public MxCore
|
2023-06-11 21:03:54 -04:00
|
|
|
{
|
|
|
|
public:
|
2023-06-29 12:08:06 -04:00
|
|
|
__declspec(dllexport) void SetObjectName(const char *p_objectName);
|
2023-06-19 20:18:53 -04:00
|
|
|
|
|
|
|
MxDSObject();
|
2023-06-29 04:10:08 -04:00
|
|
|
virtual ~MxDSObject() override;
|
|
|
|
|
2023-06-29 12:08:06 -04:00
|
|
|
MxDSObject &operator=(MxDSObject &p_dsObject);
|
|
|
|
void CopyFrom(MxDSObject &p_dsObject);
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100bf730
|
|
|
|
inline virtual const char *ClassName() const override { return "MxDSObject"; }; // vtable+0c
|
2023-06-29 04:10:08 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100bf740
|
2023-06-29 12:08:06 -04:00
|
|
|
inline virtual MxBool IsA(const char *name) const override { return !strcmp(name, MxDSObject::ClassName()) || MxCore::IsA(name); }; // vtable+10;
|
|
|
|
|
|
|
|
virtual int unk14(); // vtable+14;
|
|
|
|
virtual unsigned int CalculateUnk08(); // vtable+18;
|
2023-07-02 05:07:11 -04:00
|
|
|
virtual void Parse(char **p_source, MxU16 p_unk24); // vtable+1c;
|
2023-06-29 12:08:06 -04:00
|
|
|
|
|
|
|
void SetSourceName(const char *p_sourceName);
|
2023-06-19 20:18:53 -04:00
|
|
|
|
|
|
|
inline const MxAtomId& GetAtomId() { return this->m_atomId; }
|
|
|
|
inline int GetUnknown1c() { return this->m_unk1c; }
|
|
|
|
|
|
|
|
inline void SetUnknown1c(int p_unk1c) { this->m_unk1c = p_unk1c; }
|
2023-07-02 05:07:11 -04:00
|
|
|
inline void SetUnknown24(MxS16 p_unk24) { this->m_unk24 = p_unk24; }
|
2023-06-19 20:18:53 -04:00
|
|
|
|
2023-06-22 03:45:56 -04:00
|
|
|
// OFFSET: ISLE 0x401c40
|
|
|
|
// OFFSET: LEGO1 0x10005530
|
|
|
|
inline void SetAtomId(MxAtomId p_atomId) { this->m_atomId = p_atomId; }
|
2023-06-19 20:18:53 -04:00
|
|
|
|
|
|
|
private:
|
2023-06-29 12:08:06 -04:00
|
|
|
unsigned int m_unk08;
|
2023-07-02 05:07:11 -04:00
|
|
|
MxS16 m_unk0c;
|
2023-06-29 12:08:06 -04:00
|
|
|
char* m_sourceName;
|
2023-06-19 20:18:53 -04:00
|
|
|
int m_unk14;
|
2023-06-29 12:08:06 -04:00
|
|
|
char *m_objectName;
|
2023-06-19 20:18:53 -04:00
|
|
|
int m_unk1c;
|
|
|
|
MxAtomId m_atomId;
|
2023-07-02 05:07:11 -04:00
|
|
|
MxS16 m_unk24;
|
|
|
|
MxU16 m_unk26;
|
2023-06-19 20:18:53 -04:00
|
|
|
int m_unk28;
|
2023-06-11 21:03:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXDSOBJECT_H
|