2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXDSSOUND_H
|
|
|
|
#define MXDSSOUND_H
|
|
|
|
|
|
|
|
#include "mxdsmediaaction.h"
|
|
|
|
|
|
|
|
// VTABLE 0x100dcdd0
|
|
|
|
// SIZE 0xc0
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDSSound : public MxDSMediaAction {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDSSound();
|
|
|
|
virtual ~MxDSSound() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
void CopyFrom(MxDSSound& p_dsSound);
|
|
|
|
MxDSSound& operator=(MxDSSound& p_dsSound);
|
2023-08-16 13:15:59 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
// OFFSET: LEGO1 0x100c9330
|
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
// 0x101025e4
|
|
|
|
return "MxDSSound";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
// OFFSET: LEGO1 0x100c9340
|
|
|
|
inline virtual MxBool IsA(const char* name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, MxDSSound::ClassName()) || MxDSMediaAction::IsA(name);
|
|
|
|
}
|
2023-08-16 13:15:59 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual MxU32 GetSizeOnDisk() override; // vtable+18;
|
|
|
|
virtual void Deserialize(char** p_source, MxS16 p_unk24) override; // vtable+1c;
|
|
|
|
virtual MxDSAction* Clone() override; // vtable+2c;
|
2023-08-16 13:15:59 -04:00
|
|
|
|
2023-11-05 10:07:28 -05:00
|
|
|
inline MxS32 GetVolume() const { return m_volume; }
|
|
|
|
|
2023-07-16 02:51:11 -04:00
|
|
|
private:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxU32 m_sizeOnDisk;
|
|
|
|
MxS32 m_volume; // 0xbc
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXDSSOUND_H
|