DragonNest/GameCommon/PvPRespawnModeScoreSystem.cpp
Cussrro 47f7895977 Revert "修复编码问题"
This reverts commit 9e69c01767.
2024-12-21 10:04:04 +08:00

29 lines
497 B
C++

#include "stdafx.h"
#include "PvPRespawnModeScoreSystem.h"
#include "DnActor.h"
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
#endif
void CPvPRespawnModeScoreSystem::OnDie( DnActorHandle hActor, DnActorHandle hHitter )
{
if( !hActor )
return;
int iTeam = hActor->GetTeam();
switch( iTeam )
{
case PvPCommon::Team::A:
{
++m_uiScore[PvPCommon::TeamIndex::B];
break;
}
case PvPCommon::Team::B:
{
++m_uiScore[PvPCommon::TeamIndex::A];
break;
}
}
}