summaryrefslogtreecommitdiff
path: root/game/shared/portal/portal_gcmessages.cpp
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/shared/portal/portal_gcmessages.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/shared/portal/portal_gcmessages.cpp')
-rw-r--r--game/shared/portal/portal_gcmessages.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/game/shared/portal/portal_gcmessages.cpp b/game/shared/portal/portal_gcmessages.cpp
new file mode 100644
index 0000000..f45b65b
--- /dev/null
+++ b/game/shared/portal/portal_gcmessages.cpp
@@ -0,0 +1,28 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Provides names for GC message types for Portal
+//
+//=============================================================================
+
+#include "cbase.h"
+
+#ifdef USE_GC_IN_PORTAL1
+#include "gcsdk/gcsdk.h"
+#include "portal_gcmessages.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: A big array of message types for keeping track of their names
+//-----------------------------------------------------------------------------
+GCSDK::MsgInfo_t g_MsgInfo[] =
+{
+ DECLARE_GC_MSG( k_EMsgGCReportWarKill ),
+
+ DECLARE_GC_MSG( k_EMsgGCDev_GrantWarKill ),
+};
+
+void InitGCPortalMessageTypes()
+{
+ static GCSDK::CMessageListRegistration m_reg( g_MsgInfo, Q_ARRAYSIZE(g_MsgInfo) );
+}
+
+#endif //#ifdef USE_GC_IN_PORTAL1 \ No newline at end of file