2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXDSCHUNK_H
|
|
|
|
#define MXDSCHUNK_H
|
|
|
|
|
2023-11-13 06:25:27 -05:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2023-07-16 02:51:11 -04:00
|
|
|
#include "mxtypes.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc7f8
|
2023-11-13 06:25:27 -05:00
|
|
|
// SIZE 0x1c
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDSChunk : public MxCore {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-11-13 06:25:27 -05:00
|
|
|
enum {
|
|
|
|
Flag_Bit1 = 0x01,
|
2024-01-02 13:32:01 -05:00
|
|
|
Flag_End = 0x02,
|
2023-11-13 06:25:27 -05:00
|
|
|
Flag_Bit3 = 0x04,
|
2024-01-02 13:32:01 -05:00
|
|
|
Flag_Split = 0x10,
|
2023-11-24 12:09:53 -05:00
|
|
|
Flag_Bit16 = 0x8000
|
2023-11-13 06:25:27 -05:00
|
|
|
};
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDSChunk();
|
|
|
|
virtual ~MxDSChunk() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100be0c0
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x10101e6c
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxDSChunk";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100be0d0
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxDSChunk::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-26 16:27:54 -05:00
|
|
|
static MxU32 ReturnE();
|
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
inline void SetFlags(MxU16 p_flags) { m_flags = p_flags; }
|
2023-12-17 12:24:39 -05:00
|
|
|
inline void SetObjectId(undefined4 p_objectid) { m_objectId = p_objectid; }
|
2023-11-13 06:25:27 -05:00
|
|
|
inline void SetTime(MxLong p_time) { m_time = p_time; }
|
|
|
|
inline void SetLength(MxU32 p_length) { m_length = p_length; }
|
|
|
|
inline void SetData(MxU8* p_data) { m_data = p_data; }
|
|
|
|
|
|
|
|
inline MxU16 GetFlags() { return m_flags; }
|
2023-12-17 10:57:29 -05:00
|
|
|
inline undefined4 GetObjectId() { return m_objectId; }
|
2023-11-13 06:25:27 -05:00
|
|
|
inline MxLong GetTime() { return m_time; }
|
|
|
|
inline MxU32 GetLength() { return m_length; }
|
|
|
|
inline MxU8* GetData() { return m_data; }
|
|
|
|
|
|
|
|
inline void Release()
|
|
|
|
{
|
|
|
|
if (m_data)
|
|
|
|
delete[] m_data;
|
|
|
|
}
|
|
|
|
|
2023-12-17 12:24:39 -05:00
|
|
|
protected:
|
2023-12-26 20:33:53 -05:00
|
|
|
MxU16 m_flags; // 0x8
|
|
|
|
MxU32 m_objectId; // 0xc
|
|
|
|
MxLong m_time; // 0x10
|
|
|
|
MxU32 m_length; // 0x14
|
|
|
|
MxU8* m_data; // 0x18
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXDSCHUNK_H
|