2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXDSSUBSCRIBER_H
|
|
|
|
#define MXDSSUBSCRIBER_H
|
|
|
|
|
2023-11-12 07:47:01 -05:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2023-11-12 07:47:01 -05:00
|
|
|
#include "mxdschunk.h"
|
2023-11-13 06:25:27 -05:00
|
|
|
#include "mxstreamchunk.h"
|
2023-12-23 08:40:39 -05:00
|
|
|
#include "mxstreamchunklist.h"
|
2023-11-28 08:26:39 -05:00
|
|
|
|
|
|
|
class MxStreamController;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc698
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0x4c
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDSSubscriber : public MxCore {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDSSubscriber();
|
|
|
|
virtual ~MxDSSubscriber() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b7d50
|
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 0x101020f8
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxDSSubscriber";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b7d60
|
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, MxDSSubscriber::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-11-12 07:47:01 -05:00
|
|
|
|
2023-12-23 08:40:39 -05:00
|
|
|
MxResult Create(MxStreamController* p_controller, MxU32 p_objectId, MxS16 p_unk0x48);
|
2023-12-23 10:42:30 -05:00
|
|
|
void DeleteChunks();
|
|
|
|
MxResult AddChunk(MxStreamChunk* p_chunk, MxBool p_append);
|
2023-11-13 06:25:27 -05:00
|
|
|
MxStreamChunk* FUN_100b8250();
|
|
|
|
MxStreamChunk* FUN_100b8360();
|
2023-12-23 10:42:30 -05:00
|
|
|
void FUN_100b8390(MxStreamChunk* p_chunk);
|
2023-11-12 07:47:01 -05:00
|
|
|
|
2023-12-24 15:00:20 -05:00
|
|
|
inline MxU32 GetObjectId() { return m_objectId; }
|
|
|
|
inline MxS16 GetUnknown48() { return m_unk0x48; }
|
|
|
|
|
2023-11-12 07:47:01 -05:00
|
|
|
private:
|
2023-12-23 08:40:39 -05:00
|
|
|
MxStreamChunkList m_unk0x08; // 0x08
|
|
|
|
MxStreamChunkListCursor* m_unk0x20; // 0x20
|
|
|
|
MxStreamChunkList m_unk0x24; // 0x24
|
|
|
|
MxStreamChunkListCursor* m_unk0x3c; // 0x3c
|
|
|
|
MxStreamController* m_controller; // 0x40
|
|
|
|
MxU32 m_objectId; // 0x44
|
|
|
|
MxS16 m_unk0x48; // 0x48
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
2023-12-23 08:40:39 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b7de0
|
|
|
|
// MxDSSubscriber::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x100b7d00
|
|
|
|
// MxStreamChunkList::~MxStreamChunkList
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#endif // MXDSSUBSCRIBER_H
|