mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
36 lines
674 B
C++
36 lines
674 B
C++
#include "radio.h"
|
|
|
|
#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();
|
|
}
|
|
|
|
// STUB: LEGO1 0x1002c990
|
|
Radio::~Radio()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// 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;
|
|
}
|