36 lines
826 B
C++
36 lines
826 B
C++
#include "StopMenuMusic.h"
|
|
|
|
Util::DynamicArray< Soundwich::IJustDanceStopMenuMusicCallback* > Soundwich::StopMenuMusic::m_callbacks;
|
|
|
|
bool Soundwich::StopMenuMusic::Init( )
|
|
{
|
|
return true;
|
|
}
|
|
|
|
Soundwich::StopMenuMusic::~StopMenuMusic( )
|
|
{
|
|
}
|
|
|
|
void Soundwich::StopMenuMusic::PushEventIn( uint32 index, Component* from )
|
|
{
|
|
// stop menu music
|
|
ExecuteCallbacks();
|
|
}
|
|
|
|
void Soundwich::StopMenuMusic::RegisterCallback( IJustDanceStopMenuMusicCallback* cb )
|
|
{
|
|
m_callbacks.PushBack( cb );
|
|
}
|
|
|
|
void Soundwich::StopMenuMusic::UnregisterCallback( IJustDanceStopMenuMusicCallback* cb )
|
|
{
|
|
m_callbacks.Remove( cb );
|
|
}
|
|
|
|
void Soundwich::StopMenuMusic::ExecuteCallbacks( )
|
|
{
|
|
for( uint32 count = 0; count < m_callbacks.Size( ); ++count )
|
|
{
|
|
m_callbacks[ count ]->OnStopMenuMusic( _data.FadeOutDuration );
|
|
}
|
|
}
|