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();
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxDSSubscriber() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100b7d50
|
2024-02-01 15:42:10 -05:00
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
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
|
2024-02-01 15:42:10 -05:00
|
|
|
inline 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);
|
2024-02-17 10:35:10 -05:00
|
|
|
void DestroyData();
|
|
|
|
MxResult AddData(MxStreamChunk* p_chunk, MxBool p_append);
|
|
|
|
MxStreamChunk* PopData();
|
|
|
|
MxStreamChunk* PeekData();
|
|
|
|
void FreeDataChunk(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:
|
2024-01-08 13:07:13 -05:00
|
|
|
MxStreamChunkList m_pendingChunks; // 0x08
|
|
|
|
MxStreamChunkListCursor* m_pendingChunkCursor; // 0x20
|
|
|
|
MxStreamChunkList m_consumedChunks; // 0x24
|
|
|
|
MxStreamChunkListCursor* m_consumedChunkCursor; // 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
|