#include "stdafx.h" #include "ItemRespawnLogic.h" #include "EventControlHeader.h" #include "EtWorldEventArea.h" #include "DNGameRoom.h" void CItemRespawnLogic::Reset() { m_vItemRespawn.clear(); } void CItemRespawnLogic::AddItemRespawnArea( CEtWorldEventArea* pArea ) { PvPRespawnItemAreaStruct* pData = reinterpret_cast(pArea->GetData()); m_vItemRespawn.push_back( SItemRespawn(pData->nRespawnIntervalSec,pData->nItemDropTableID,pArea->GetOBB(),(pData->bIsStartSpawn ? true : false) ) ); } void CItemRespawnLogic::Process( const float fDelta ) { for( UINT i=0 ; iRequestItemDropTable( m_vItemRespawn[i].uiItemDropTableID, &vPos ); } } } //******************************************************************* // [PvP] ItemRespawnLogic //******************************************************************* void CPvPItemRespawnLogic::FinishRound() { for( UINT i=0 ; i