2023-06-11 21:03:54 -04:00
|
|
|
#ifndef MXDSOBJECT_H
|
|
|
|
#define MXDSOBJECT_H
|
|
|
|
|
2023-07-03 13:24:51 -04:00
|
|
|
#include "decomp.h"
|
|
|
|
|
2023-06-19 20:18:53 -04:00
|
|
|
#include "mxcore.h"
|
|
|
|
#include "mxatomid.h"
|
2023-07-03 13:24:51 -04:00
|
|
|
#include "mxdstypes.h"
|
2023-06-19 20:18:53 -04:00
|
|
|
|
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-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
|
|
|
void CopyFrom(MxDSObject &p_dsObject);
|
2023-07-03 13:24:51 -04:00
|
|
|
MxDSObject &operator=(MxDSObject &p_dsObject);
|
2023-06-29 12:08:06 -04:00
|
|
|
|
2023-07-03 13:24:51 -04:00
|
|
|
__declspec(dllexport) void SetObjectName(const char *p_objectName);
|
|
|
|
void SetSourceName(const char *p_sourceName);
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100bf730
|
2023-06-29 12:08:06 -04:00
|
|
|
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;
|
|
|
|
|
2023-07-03 13:24:51 -04:00
|
|
|
virtual undefined4 unk14(); // vtable+14;
|
2023-08-08 22:38:07 -04:00
|
|
|
virtual MxU32 GetSizeOnDisk(); // vtable+18;
|
|
|
|
virtual void Deserialize(char **p_source, MxS16 p_unk24); // vtable+1c;
|
|
|
|
// OFFSET: ISLE 0x401c40
|
|
|
|
// OFFSET: LEGO1 0x10005530
|
|
|
|
inline virtual void SetAtomId(MxAtomId p_atomId) { this->m_atomId = p_atomId; } // vtable+20;
|
2023-06-19 20:18:53 -04:00
|
|
|
|
|
|
|
inline const MxAtomId& GetAtomId() { return this->m_atomId; }
|
2023-08-08 22:38:07 -04:00
|
|
|
inline MxU32 GetObjectId() { return this->m_objectId; }
|
2023-06-19 20:18:53 -04:00
|
|
|
|
2023-08-08 22:38:07 -04:00
|
|
|
inline void SetObjectId(MxU32 p_objectId) { this->m_objectId = p_objectId; }
|
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-07-03 13:24:51 -04:00
|
|
|
protected:
|
|
|
|
inline void SetType(MxDSType p_type) { this->m_type = p_type; }
|
2023-08-16 13:15:59 -04:00
|
|
|
inline MxDSType GetType() { return (MxDSType) this->m_type; }
|
2023-07-03 13:24:51 -04:00
|
|
|
|
2023-06-19 20:18:53 -04:00
|
|
|
private:
|
2023-08-08 22:38:07 -04:00
|
|
|
MxU32 m_sizeOnDisk;
|
2023-07-03 13:24:51 -04:00
|
|
|
MxU16 m_type;
|
2023-06-29 12:08:06 -04:00
|
|
|
char* m_sourceName;
|
2023-07-03 13:24:51 -04:00
|
|
|
undefined4 m_unk14;
|
2023-06-29 12:08:06 -04:00
|
|
|
char *m_objectName;
|
2023-08-08 22:38:07 -04:00
|
|
|
MxU32 m_objectId;
|
2023-06-19 20:18:53 -04:00
|
|
|
MxAtomId m_atomId;
|
2023-07-02 05:07:11 -04:00
|
|
|
MxS16 m_unk24;
|
2023-07-03 13:24:51 -04:00
|
|
|
undefined4 m_unk28;
|
2023-06-11 21:03:54 -04:00
|
|
|
};
|
|
|
|
|
2023-09-20 16:22:57 -04:00
|
|
|
MxDSObject *DeserializeDSObjectDispatch(char **, MxS16);
|
|
|
|
|
2023-06-11 21:03:54 -04:00
|
|
|
#endif // MXDSOBJECT_H
|