2023-06-29 04:10:08 -04:00
|
|
|
#ifndef RADIO_H
|
|
|
|
#define RADIO_H
|
|
|
|
|
|
|
|
#include "mxcore.h"
|
2024-05-03 12:19:12 -04:00
|
|
|
|
|
|
|
class LegoControlManagerEvent;
|
|
|
|
class MxEndActionNotificationParam;
|
|
|
|
class RadioState;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d6d10
|
2024-01-30 13:57:20 -05:00
|
|
|
// SIZE 0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
class Radio : public MxCore {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-12-14 18:24:21 -05:00
|
|
|
Radio();
|
2024-02-01 15:42:10 -05:00
|
|
|
~Radio() override;
|
2023-11-04 09:47:35 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxLong Notify(MxParam& p_param) override; // vtable+0x04
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002c8e0
|
2024-02-01 15:42:10 -05:00
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f328c
|
2023-11-04 09:47:35 -04:00
|
|
|
return "Radio";
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002c8f0
|
2024-02-01 15:42:10 -05:00
|
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-11-04 09:47:35 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, Radio::ClassName()) || MxCore::IsA(p_name);
|
2023-11-04 09:47:35 -04:00
|
|
|
}
|
2023-12-14 18:24:21 -05:00
|
|
|
|
2024-01-21 12:38:22 -05:00
|
|
|
void Initialize(MxBool p_und);
|
2024-05-24 14:07:36 -04:00
|
|
|
void CreateState();
|
2024-01-31 09:47:15 -05:00
|
|
|
void Play();
|
|
|
|
void Stop();
|
2024-01-21 12:38:22 -05:00
|
|
|
|
2024-02-01 15:56:27 -05:00
|
|
|
inline RadioState* GetState() { return m_state; }
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1002c970
|
|
|
|
// Radio::`scalar deleting destructor'
|
|
|
|
|
2023-12-14 18:24:21 -05:00
|
|
|
private:
|
2024-02-14 11:48:39 -05:00
|
|
|
RadioState* m_state; // 0x08
|
|
|
|
MxBool m_unk0x0c; // 0x0c
|
|
|
|
MxBool m_audioEnabled; // 0x0d
|
2023-12-14 18:24:21 -05:00
|
|
|
|
2024-01-30 13:57:20 -05:00
|
|
|
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
|
2024-05-30 09:54:24 -04:00
|
|
|
MxLong HandleControl(LegoControlManagerEvent& p_param);
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RADIO_H
|