2023-06-29 04:10:08 -04:00
|
|
|
#include "radio.h"
|
|
|
|
|
2023-12-14 18:24:21 -05:00
|
|
|
#include "legocontrolmanager.h"
|
|
|
|
#include "legogamestate.h"
|
|
|
|
#include "legoomni.h"
|
|
|
|
#include "mxnotificationmanager.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(Radio, 0x10);
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1002c850
|
|
|
|
Radio::Radio()
|
|
|
|
{
|
|
|
|
NotificationManager()->Register(this);
|
|
|
|
ControlManager()->Register(this);
|
|
|
|
|
|
|
|
m_unk0xc = TRUE;
|
|
|
|
CreateRadioState();
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1002c990
|
2023-06-29 04:10:08 -04:00
|
|
|
Radio::~Radio()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2023-10-25 14:51:59 -04:00
|
|
|
}
|
2023-12-14 18:24:21 -05:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1002cde0
|
|
|
|
void Radio::CreateRadioState()
|
|
|
|
{
|
|
|
|
LegoGameState* gameState = GameState();
|
|
|
|
RadioState* state = (RadioState*) gameState->GetState("RadioState");
|
|
|
|
if (state == NULL) {
|
|
|
|
state = (RadioState*) gameState->CreateState("RadioState");
|
|
|
|
}
|
|
|
|
|
|
|
|
m_state = state;
|
|
|
|
}
|