DragonNest/GameCommon/PvPRespawnModeScoreSystem.cpp
2024-12-20 16:56:44 +08:00

29 lines
1 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.


#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;
}
}
}