aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/inetmessage.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/inetmessage.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/inetmessage.h')
-rw-r--r--sp/src/public/inetmessage.h94
1 files changed, 47 insertions, 47 deletions
diff --git a/sp/src/public/inetmessage.h b/sp/src/public/inetmessage.h
index 90fa530a..0a3e1858 100644
--- a/sp/src/public/inetmessage.h
+++ b/sp/src/public/inetmessage.h
@@ -1,47 +1,47 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: INetMessage interface
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef INETMESSAGE_H
-#define INETMESSAGE_H
-
-#include "tier1/bitbuf.h"
-
-class INetMsgHandler;
-class INetMessage;
-class INetChannel;
-
-// typedef bool (INetMsgHandler::*PROCESSFUNCPTR)(INetMessage*);
-// #define CASTPROCPTR( fn ) static_cast <bool (INetMsgHandler::*)(INetMessage*)> (fn)
-
-class INetMessage
-{
-public:
- virtual ~INetMessage() {};
-
- // Use these to setup who can hear whose voice.
- // Pass in client indices (which are their ent indices - 1).
-
- virtual void SetNetChannel(INetChannel * netchan) = 0; // netchannel this message is from/for
- virtual void SetReliable( bool state ) = 0; // set to true if it's a reliable message
-
- virtual bool Process( void ) = 0; // calles the recently set handler to process this message
-
- virtual bool ReadFromBuffer( bf_read &buffer ) = 0; // returns true if parsing was OK
- virtual bool WriteToBuffer( bf_write &buffer ) = 0; // returns true if writing was OK
-
- virtual bool IsReliable( void ) const = 0; // true, if message needs reliable handling
-
- virtual int GetType( void ) const = 0; // returns module specific header tag eg svc_serverinfo
- virtual int GetGroup( void ) const = 0; // returns net message group of this message
- virtual const char *GetName( void ) const = 0; // returns network message name, eg "svc_serverinfo"
- virtual INetChannel *GetNetChannel( void ) const = 0;
- virtual const char *ToString( void ) const = 0; // returns a human readable string about message content
-};
-
-
-#endif
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: INetMessage interface
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef INETMESSAGE_H
+#define INETMESSAGE_H
+
+#include "tier1/bitbuf.h"
+
+class INetMsgHandler;
+class INetMessage;
+class INetChannel;
+
+// typedef bool (INetMsgHandler::*PROCESSFUNCPTR)(INetMessage*);
+// #define CASTPROCPTR( fn ) static_cast <bool (INetMsgHandler::*)(INetMessage*)> (fn)
+
+class INetMessage
+{
+public:
+ virtual ~INetMessage() {};
+
+ // Use these to setup who can hear whose voice.
+ // Pass in client indices (which are their ent indices - 1).
+
+ virtual void SetNetChannel(INetChannel * netchan) = 0; // netchannel this message is from/for
+ virtual void SetReliable( bool state ) = 0; // set to true if it's a reliable message
+
+ virtual bool Process( void ) = 0; // calles the recently set handler to process this message
+
+ virtual bool ReadFromBuffer( bf_read &buffer ) = 0; // returns true if parsing was OK
+ virtual bool WriteToBuffer( bf_write &buffer ) = 0; // returns true if writing was OK
+
+ virtual bool IsReliable( void ) const = 0; // true, if message needs reliable handling
+
+ virtual int GetType( void ) const = 0; // returns module specific header tag eg svc_serverinfo
+ virtual int GetGroup( void ) const = 0; // returns net message group of this message
+ virtual const char *GetName( void ) const = 0; // returns network message name, eg "svc_serverinfo"
+ virtual INetChannel *GetNetChannel( void ) const = 0;
+ virtual const char *ToString( void ) const = 0; // returns a human readable string about message content
+};
+
+
+#endif
+