diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/shared/voice_banmgr.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/shared/voice_banmgr.h')
| -rw-r--r-- | sp/src/game/shared/voice_banmgr.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/sp/src/game/shared/voice_banmgr.h b/sp/src/game/shared/voice_banmgr.h index d516f136..6adfdc55 100644 --- a/sp/src/game/shared/voice_banmgr.h +++ b/sp/src/game/shared/voice_banmgr.h @@ -1,54 +1,54 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef VOICE_BANMGR_H
-#define VOICE_BANMGR_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-// This class manages the (persistent) list of squelched players.
-class CVoiceBanMgr
-{
-public:
-
- CVoiceBanMgr();
- ~CVoiceBanMgr();
-
- // Init loads the list of squelched players from disk.
- bool Init(const char *pGameDir);
- void Term();
-
- // Saves the state into voice_squelch.dt.
- void SaveState(const char *pGameDir);
-
- bool GetPlayerBan(char const playerID[SIGNED_GUID_LEN]);
- void SetPlayerBan(char const playerID[SIGNED_GUID_LEN], bool bSquelch);
-
-
-protected:
-
- class BannedPlayer
- {
- public:
- char m_PlayerID[SIGNED_GUID_LEN];
- BannedPlayer *m_pPrev, *m_pNext;
- };
-
- void Clear();
- BannedPlayer* InternalFindPlayerSquelch(char const playerID[SIGNED_GUID_LEN]);
- BannedPlayer* AddBannedPlayer(char const playerID[SIGNED_GUID_LEN]);
-
-
-protected:
-
- BannedPlayer m_PlayerHash[256];
-};
-
-
-#endif // VOICE_BANMGR_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef VOICE_BANMGR_H +#define VOICE_BANMGR_H +#ifdef _WIN32 +#pragma once +#endif + + +// This class manages the (persistent) list of squelched players. +class CVoiceBanMgr +{ +public: + + CVoiceBanMgr(); + ~CVoiceBanMgr(); + + // Init loads the list of squelched players from disk. + bool Init(const char *pGameDir); + void Term(); + + // Saves the state into voice_squelch.dt. + void SaveState(const char *pGameDir); + + bool GetPlayerBan(char const playerID[SIGNED_GUID_LEN]); + void SetPlayerBan(char const playerID[SIGNED_GUID_LEN], bool bSquelch); + + +protected: + + class BannedPlayer + { + public: + char m_PlayerID[SIGNED_GUID_LEN]; + BannedPlayer *m_pPrev, *m_pNext; + }; + + void Clear(); + BannedPlayer* InternalFindPlayerSquelch(char const playerID[SIGNED_GUID_LEN]); + BannedPlayer* AddBannedPlayer(char const playerID[SIGNED_GUID_LEN]); + + +protected: + + BannedPlayer m_PlayerHash[256]; +}; + + +#endif // VOICE_BANMGR_H |