mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
9e686e2a87
* cmake+ci: run clang-tidy
* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def
* Add initial .clang-tidy and fixes
* fix file perms
* Comment out DESCRIPTION
* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def
* Looks like clang is allergic to the libs in the directx5 SDK
* Update .clang-tidy
* Fix typo in .clang-tidy
* Attempt to generate an action error
* Revert "Attempt to generate an action error"
This reverts commit 96c4c65fed
.
* cmake: test with -Wparentheses + optionally with -Werror
* ci: -k0 is a Ninja argument
* Use -Werror only for msys2 builds
* cmake: only emit warnings for specific warnings
* cmake: and don't do -Werror/-WX anymore
* Fix warnings
* Fix mingw warnings
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
#ifndef MXDSSUBSCRIBER_H
|
|
#define MXDSSUBSCRIBER_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxcore.h"
|
|
#include "mxdschunk.h"
|
|
#include "mxstreamchunk.h"
|
|
#include "mxstreamchunklist.h"
|
|
|
|
class MxStreamController;
|
|
|
|
// VTABLE: LEGO1 0x100dc698
|
|
// SIZE 0x4c
|
|
class MxDSSubscriber : public MxCore {
|
|
public:
|
|
MxDSSubscriber();
|
|
~MxDSSubscriber() override;
|
|
|
|
// FUNCTION: LEGO1 0x100b7d50
|
|
inline const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x101020f8
|
|
return "MxDSSubscriber";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100b7d60
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, MxDSSubscriber::ClassName()) || MxCore::IsA(p_name);
|
|
}
|
|
|
|
MxResult Create(MxStreamController* p_controller, MxU32 p_objectId, MxS16 p_unk0x48);
|
|
void DeleteChunks();
|
|
MxResult AddChunk(MxStreamChunk* p_chunk, MxBool p_append);
|
|
MxStreamChunk* NextChunk();
|
|
MxStreamChunk* CurrentChunk();
|
|
void DestroyChunk(MxStreamChunk* p_chunk);
|
|
|
|
inline MxU32 GetObjectId() { return m_objectId; }
|
|
inline MxS16 GetUnknown48() { return m_unk0x48; }
|
|
|
|
private:
|
|
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
|
|
};
|
|
|
|
// SYNTHETIC: LEGO1 0x100b7de0
|
|
// MxDSSubscriber::`scalar deleting destructor'
|
|
|
|
// TEMPLATE: LEGO1 0x100b7d00
|
|
// MxStreamChunkList::~MxStreamChunkList
|
|
|
|
#endif // MXDSSUBSCRIBER_H
|