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-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100dcd40
|
2024-05-03 12:51:58 -04:00
|
|
|
// VTABLE: BETA10 0x101c2ad8
|
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);
|
2024-05-03 12:51:58 -04:00
|
|
|
MxDSMediaAction(MxDSMediaAction& p_dsMediaAction);
|
2023-10-24 19:38:27 -04:00
|
|
|
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-05-03 12:51:58 -04:00
|
|
|
// FUNCTION: BETA10 0x1015c700
|
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-05-03 12:51:58 -04:00
|
|
|
// FUNCTION: BETA10 0x1015c6a0
|
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
|
2024-05-03 12:51:58 -04:00
|
|
|
// SYNTHETIC: BETA10 0x1015d810
|
2024-01-17 12:08:48 -05:00
|
|
|
// MxDSMediaAction::`scalar deleting destructor'
|
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
undefined4 VTable0x14() override; // vtable+14;
|
|
|
|
MxU32 GetSizeOnDisk() override; // vtable+18;
|
2024-04-03 12:06:53 -04:00
|
|
|
void Deserialize(MxU8*& p_source, MxS16 p_unk0x24) override; // vtable+1c;
|
2024-02-01 15:42:10 -05:00
|
|
|
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);
|
|
|
|
|
2024-05-03 12:51:58 -04:00
|
|
|
// FUNCTION: BETA10 0x1013c2e0
|
|
|
|
inline MxS32 GetFramesPerSecond() const { return m_framesPerSecond; }
|
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1012efd0
|
|
|
|
inline MxS32 GetMediaFormat() const { return m_mediaFormat; }
|
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1013b860
|
|
|
|
inline MxS32 GetPaletteManagement() const { return m_paletteManagement; }
|
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1005ab60
|
|
|
|
inline MxLong GetSustainTime() const { return m_sustainTime; }
|
2023-09-22 17:42:23 -04:00
|
|
|
|
2023-07-16 02:51:11 -04:00
|
|
|
private:
|
2024-05-03 12:51:58 -04:00
|
|
|
struct Unk0x9cStruct {
|
|
|
|
// FUNCTION: BETA10 0x1015d7c0
|
|
|
|
void SetUnk0x00(undefined4 p_value) { m_unk0x00 = p_value; }
|
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x1015d7e0
|
|
|
|
void SetUnk0x04(undefined4 p_value) { m_unk0x04 = p_value; }
|
|
|
|
|
|
|
|
// intentionally public
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined4 m_unk0x00;
|
|
|
|
undefined4 m_unk0x04;
|
2024-05-03 12:51:58 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
MxU32 m_sizeOnDisk; // 0x94
|
|
|
|
char* m_mediaSrcPath; // 0x98
|
|
|
|
Unk0x9cStruct 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
|