DragonNest/GameCommon/PvPGameModeScoreSystem.h
2024-12-20 16:56:44 +08:00

37 lines
1.7 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.


#pragma once
class IPVPGameModeScoreSystem
{
public:
IPVPGameModeScoreSystem()
{
for( UINT i=0 ; i<PvPCommon::TeamIndex::Max ; ++i )
m_uiScore[i] = 0;
}
virtual ~IPVPGameModeScoreSystem(){}
void SetGameModeScore( const UINT uiATeamScore, const UINT uiBTeamScore )
{
m_uiScore[PvPCommon::TeamIndex::A] = uiATeamScore;
m_uiScore[PvPCommon::TeamIndex::B] = uiBTeamScore;
}
void GetGameModeScore( UINT& uiATeamScore, UINT& uiBTeamScore )
{
uiATeamScore = m_uiScore[PvPCommon::TeamIndex::A];
uiBTeamScore = m_uiScore[PvPCommon::TeamIndex::B];
}
virtual void OnDie( DnActorHandle hActor, DnActorHandle hHitter ){}
#if defined( _GAMESERVER )
virtual void OnFinishRound( CDNGameRoom* pGameRoom, UINT uiWinTeam ){}
#endif // #if defined( _GAMESERVER )
protected:
UINT m_uiScore[PvPCommon::TeamIndex::Max];
};