summaryrefslogtreecommitdiff
path: root/game/client/tf/c_tf_freeaccount.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/c_tf_freeaccount.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/c_tf_freeaccount.h')
-rw-r--r--game/client/tf/c_tf_freeaccount.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/game/client/tf/c_tf_freeaccount.h b/game/client/tf/c_tf_freeaccount.h
new file mode 100644
index 0000000..0656621
--- /dev/null
+++ b/game/client/tf/c_tf_freeaccount.h
@@ -0,0 +1,42 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Interface for the client to general GC API
+//
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef C_TF_FREEACCOUNT_H
+#define C_TF_FREEACCOUNT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+namespace vgui
+{
+ class Panel;
+};
+class CSelectPlayerDialog;
+
+/**
+ * @return true if the local player is using a free trial account, false otherwise
+ */
+bool IsFreeTrialAccount();
+
+/**
+ * @return true if the local player needs to choose their most helpful friend, false otherwse
+ */
+bool NeedsToChooseMostHelpfulFriend();
+
+/**
+ * Adds an alert that the player needs to choose their most helpful friend
+ */
+void NotifyNeedsToChooseMostHelpfulFriend();
+
+/**
+ * Opens the dialog where the user can specify the friend that helped them the most
+ * @param pParent
+ * @return CSelectPlayerDialog
+ */
+CSelectPlayerDialog *OpenSelectMostHelpfulFriendDialog( vgui::Panel *pParent );
+
+#endif // C_TF_FREEACCOUNT_H