2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXDSMEDIAACTION_H
|
|
|
|
#define MXDSMEDIAACTION_H
|
|
|
|
|
2023-07-16 02:51:11 -04:00
|
|
|
#include "decomp.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxdsaction.h"
|
2023-10-11 03:50:14 -04:00
|
|
|
#include "mxpoint32.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dcd40
|
2023-06-29 04:10:08 -04:00
|
|
|
// SIZE 0xb8
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxDSMediaAction : public MxDSAction {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDSMediaAction();
|
2024-02-01 15:42:10 -05:00
|
|
|
~MxDSMediaAction() override;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
void CopyFrom(MxDSMediaAction& p_dsMediaAction);
|
|
|
|
MxDSMediaAction& operator=(MxDSMediaAction& p_dsMediaAction);
|
2023-08-10 13:57:53 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100c8be0
|
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 0x100f7624
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxDSMediaAction";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100c8bf0
|
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, MxDSMediaAction::ClassName()) || MxDSAction::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-08-10 13:57:53 -04:00
|
|
|
|
2024-01-17 12:08:48 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100c8cd0
|
|
|
|
// MxDSMediaAction::`scalar deleting destructor'
|
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
undefined4 VTable0x14() override; // vtable+14;
|
|
|
|
MxU32 GetSizeOnDisk() override; // vtable+18;
|
|
|
|
void Deserialize(MxU8** p_source, MxS16 p_unk0x24) override; // vtable+1c;
|
|
|
|
MxDSAction* Clone() override; // vtable+2c;
|
2023-08-10 13:57:53 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
void CopyMediaSrcPath(const char* p_mediaSrcPath);
|
|
|
|
|
2023-12-22 14:05:42 -05:00
|
|
|
inline MxS32 GetFramesPerSecond() const { return this->m_framesPerSecond; }
|
2023-10-24 19:38:27 -04:00
|
|
|
inline MxS32 GetMediaFormat() const { return this->m_mediaFormat; }
|
2023-12-07 07:13:31 -05:00
|
|
|
inline MxS32 GetPaletteManagement() const { return this->m_paletteManagement; }
|
2023-10-24 19:38:27 -04:00
|
|
|
inline MxLong GetSustainTime() const { return this->m_sustainTime; }
|
2023-09-22 17:42:23 -04:00
|
|
|
|
2023-07-16 02:51:11 -04:00
|
|
|
private:
|
2023-11-14 15:25:14 -05:00
|
|
|
MxU32 m_sizeOnDisk; // 0x94
|
|
|
|
char* m_mediaSrcPath; // 0x98
|
2023-10-24 19:38:27 -04:00
|
|
|
struct {
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined4 m_unk0x00;
|
|
|
|
undefined4 m_unk0x04;
|
|
|
|
} m_unk0x9c; // 0x9c
|
2023-11-14 15:25:14 -05:00
|
|
|
MxS32 m_framesPerSecond; // 0xa4
|
|
|
|
MxS32 m_mediaFormat; // 0xa8
|
|
|
|
MxS32 m_paletteManagement; // 0xac
|
|
|
|
MxLong m_sustainTime; // 0xb0
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined4 m_unk0xb4; // 0xb4
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXDSMEDIAACTION_H
|