aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/dt_utlvector_send.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/dt_utlvector_send.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/dt_utlvector_send.h')
-rw-r--r--sp/src/public/dt_utlvector_send.h114
1 files changed, 57 insertions, 57 deletions
diff --git a/sp/src/public/dt_utlvector_send.h b/sp/src/public/dt_utlvector_send.h
index 8ffee411..f2ba68c3 100644
--- a/sp/src/public/dt_utlvector_send.h
+++ b/sp/src/public/dt_utlvector_send.h
@@ -1,57 +1,57 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Player for HL1.
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef DT_UTLVECTOR_SEND_H
-#define DT_UTLVECTOR_SEND_H
-#pragma once
-
-
-#include "dt_send.h"
-#include "dt_utlvector_common.h"
-
-
-#define SENDINFO_UTLVECTOR( varName ) #varName, \
- offsetof(currentSendDTClass, varName), \
- sizeof(((currentSendDTClass*)0)->varName[0]), \
- GetEnsureCapacityTemplate( ((currentSendDTClass*)0)->varName )
-
-
-
-#define SendPropUtlVectorDataTable( varName, nMaxElements, dataTableName ) \
- SendPropUtlVector( \
- SENDINFO_UTLVECTOR( varName ), \
- nMaxElements, \
- SendPropDataTable( NULL, 0, &REFERENCE_SEND_TABLE( dataTableName ) ) \
- )
-
-//
-// Set it up to transmit a CUtlVector of basic types or of structures.
-//
-// pArrayProp doesn't need a name, offset, or size. You can pass 0 for all those.
-// Example usage:
-//
-// SendPropUtlVectorDataTable( m_StructArray, 11, DT_TestStruct )
-//
-// SendPropUtlVector(
-// SENDINFO_UTLVECTOR( m_FloatArray ),
-// 16, // max elements
-// SendPropFloat( NULL, 0, 0, 0, SPROP_NOSCALE )
-// )
-//
-SendProp SendPropUtlVector(
- char *pVarName, // Use SENDINFO_UTLVECTOR to generate these first 4 parameters.
- int offset,
- int sizeofVar,
- EnsureCapacityFn ensureFn,
-
- int nMaxElements, // Max # of elements in the array. Keep this as low as possible.
- SendProp pArrayProp, // Describe the data inside of each element in the array.
- SendTableProxyFn varProxy=SendProxy_DataTableToDataTable // This can be overridden to control who the array is sent to.
- );
-
-
-#endif // DT_UTLVECTOR_SEND_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Player for HL1.
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef DT_UTLVECTOR_SEND_H
+#define DT_UTLVECTOR_SEND_H
+#pragma once
+
+
+#include "dt_send.h"
+#include "dt_utlvector_common.h"
+
+
+#define SENDINFO_UTLVECTOR( varName ) #varName, \
+ offsetof(currentSendDTClass, varName), \
+ sizeof(((currentSendDTClass*)0)->varName[0]), \
+ GetEnsureCapacityTemplate( ((currentSendDTClass*)0)->varName )
+
+
+
+#define SendPropUtlVectorDataTable( varName, nMaxElements, dataTableName ) \
+ SendPropUtlVector( \
+ SENDINFO_UTLVECTOR( varName ), \
+ nMaxElements, \
+ SendPropDataTable( NULL, 0, &REFERENCE_SEND_TABLE( dataTableName ) ) \
+ )
+
+//
+// Set it up to transmit a CUtlVector of basic types or of structures.
+//
+// pArrayProp doesn't need a name, offset, or size. You can pass 0 for all those.
+// Example usage:
+//
+// SendPropUtlVectorDataTable( m_StructArray, 11, DT_TestStruct )
+//
+// SendPropUtlVector(
+// SENDINFO_UTLVECTOR( m_FloatArray ),
+// 16, // max elements
+// SendPropFloat( NULL, 0, 0, 0, SPROP_NOSCALE )
+// )
+//
+SendProp SendPropUtlVector(
+ char *pVarName, // Use SENDINFO_UTLVECTOR to generate these first 4 parameters.
+ int offset,
+ int sizeofVar,
+ EnsureCapacityFn ensureFn,
+
+ int nMaxElements, // Max # of elements in the array. Keep this as low as possible.
+ SendProp pArrayProp, // Describe the data inside of each element in the array.
+ SendTableProxyFn varProxy=SendProxy_DataTableToDataTable // This can be overridden to control who the array is sent to.
+ );
+
+
+#endif // DT_UTLVECTOR_SEND_H