Implement/match Radio, RadioState (#509)

* WIP RadioState

* WIP

* WIP

* Implement/match Radio/RadioState

* Fix naming

* Use sizeof
This commit is contained in:
Christian Semmler
2024-01-30 13:57:20 -05:00
committed by GitHub
parent 743e042564
commit cdf76754f7
11 changed files with 279 additions and 44 deletions

View File

@@ -1,10 +1,13 @@
#ifndef RADIO_H
#define RADIO_H
#include "legocontrolmanager.h"
#include "mxactionnotificationparam.h"
#include "mxcore.h"
#include "radiostate.h"
// VTABLE: LEGO1 0x100d6d10
// SIZE 0x10
class Radio : public MxCore {
public:
Radio();
@@ -31,10 +34,15 @@ public:
// Radio::`scalar deleting destructor'
private:
RadioState* m_state; // 0x08
MxBool m_unk0x0c; // 0x0c
RadioState* m_state; // 0x08
MxBool m_unk0x0c; // 0x0c
MxBool m_bgAudioPreviouslyEnabled; // 0x0d
void CreateRadioState();
void Play();
void Stop();
MxLong HandleEndAction(MxEndActionNotificationParam& p_param);
MxLong HandleNotification17(LegoControlManagerEvent& p_param);
};
#endif // RADIO_H