soundeffectunit.cpp

来自「墨香最新私服」· C++ 代码 · 共 49 行

CPP
49
字号
// SoundEffectUnit.cpp: implementation of the CSoundEffectUnit class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SoundEffectUnit.h"
#include "SoundEffectUnitDesc.h"
#include "..\Audio\MHAudioManager.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSoundEffectUnit::CSoundEffectUnit()
{

}

CSoundEffectUnit::~CSoundEffectUnit()
{

}

void CSoundEffectUnit::Initialize(CEffectUnitDesc* pEffectUnitDesc,EFFECTPARAM* pEffectParam)
{

	CEffectUnit::Initialize(pEffectUnitDesc,pEffectParam);
}
void CSoundEffectUnit::Release()
{
	CSoundEffectUnitDesc::ReleaseUnit(this);
}

void CSoundEffectUnit::DoOn(EFFECTPARAM* pParam,TARGETSET* pObject)
{
	CSoundEffectUnitDesc* pDesc = (CSoundEffectUnitDesc*)m_pEffectUnitDesc;

	AUDIOMGR->Play( pDesc->m_SoundNum, pObject->pTarget );
}
void CSoundEffectUnit::DoOff(EFFECTPARAM* pParam,TARGETSET* pObject)
{
	CSoundEffectUnitDesc* pDesc = (CSoundEffectUnitDesc*)m_pEffectUnitDesc;

}

void CSoundEffectUnit::DoProcess(DWORD tickTime,EFFECTPARAM* pParam)
{

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?