diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/vgui/tf_match_join_handlers.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf/vgui/tf_match_join_handlers.h')
| -rw-r--r-- | game/client/tf/vgui/tf_match_join_handlers.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_match_join_handlers.h b/game/client/tf/vgui/tf_match_join_handlers.h new file mode 100644 index 0000000..efe0153 --- /dev/null +++ b/game/client/tf/vgui/tf_match_join_handlers.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TF_MATCH_JOIN_HANDLERS_H +#define TF_MATCH_JOIN_HANDLERS_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/EditablePanel.h> +#include "tf_controls.h" + +class IMatchJoiningHandler +{ +public: + IMatchJoiningHandler(); + virtual ~IMatchJoiningHandler(); + + virtual void MatchFound() = 0; + +protected: + + void JoinMatch(); +}; + +class CTFImmediateAutoJoinHandler : public IMatchJoiningHandler +{ +public: + CTFImmediateAutoJoinHandler(); + virtual void MatchFound() OVERRIDE; + +private: + + float m_flNextAutoJoinTime; +}; + +class CTFRejoinConfirmDialog; +class CTFMatchMakingPopupPrompJoinHandler : public IMatchJoiningHandler +{ +public: + CTFMatchMakingPopupPrompJoinHandler(); + + virtual void MatchFound() OVERRIDE; + + static void OnJoinLobbyInProgressCallback( bool bConfirmed, void *pContext ); +private: + + void UpdatePromptState(); + + static CTFRejoinConfirmDialog* m_pRejoinPrompt; + float m_flNextRejoinThinkTime; +}; + +#endif // TF_MATCH_JOIN_HANDLERS_H |