diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/dt_utlvector_recv.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/dt_utlvector_recv.h')
| -rw-r--r-- | mp/src/public/dt_utlvector_recv.h | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/mp/src/public/dt_utlvector_recv.h b/mp/src/public/dt_utlvector_recv.h index 2657ffe1..6b27057a 100644 --- a/mp/src/public/dt_utlvector_recv.h +++ b/mp/src/public/dt_utlvector_recv.h @@ -1,60 +1,60 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Player for HL1.
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef DT_UTLVECTOR_RECV_H
-#define DT_UTLVECTOR_RECV_H
-#pragma once
-
-
-#include "dt_recv.h"
-#include "dt_utlvector_common.h"
-
-
-
-#define RECVINFO_UTLVECTOR( varName ) #varName, \
- offsetof(currentRecvDTClass, varName), \
- sizeof(((currentRecvDTClass*)0)->varName[0]), \
- GetResizeUtlVectorTemplate( ((currentRecvDTClass*)0)->varName ), \
- GetEnsureCapacityTemplate( ((currentRecvDTClass*)0)->varName )
-
-// Use this macro to specify a utlvector where you specify the function
-// that gets called to make sure the size of the utlvector is correct.
-// The size function looks like this: void ResizeUtlVector( void *pVoid, int len )
-#define RECVINFO_UTLVECTOR_SIZEFN( varName, resizeFn ) #varName, \
- offsetof(currentRecvDTClass, varName), \
- sizeof(((currentRecvDTClass*)0)->varName[0]), \
- resizeFn, \
- GetEnsureCapacityTemplate( ((currentRecvDTClass*)0)->varName )
-
-
-#define RecvPropUtlVectorDataTable( varName, nMaxElements, dataTableName ) \
- RecvPropUtlVector( RECVINFO_UTLVECTOR( varName ), nMaxElements, RecvPropDataTable(NULL,0,0, &REFERENCE_RECV_TABLE( dataTableName ) ) )
-
-
-//
-// Receive a property sent with SendPropUtlVector.
-//
-// Example usage:
-//
-// RecvPropUtlVectorDataTable( m_StructArray, 11, DT_StructArray )
-//
-// RecvPropUtlVector( RECVINFO_UTLVECTOR( m_FloatArray ), 16, RecvPropFloat(NULL,0,0) )
-//
-RecvProp RecvPropUtlVector(
- const char *pVarName, // Use RECVINFO_UTLVECTOR to generate these first 5 parameters.
- int offset,
- int sizeofVar,
- ResizeUtlVectorFn fn,
- EnsureCapacityFn ensureFn,
-
- int nMaxElements, // Max # of elements in the array. Keep this as low as possible.
- RecvProp pArrayProp // The definition of the property you're receiving into.
- // You can leave all of its parameters at 0 (name, offset, size, etc).
- );
-
-
-#endif // DT_UTLVECTOR_RECV_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Player for HL1. +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef DT_UTLVECTOR_RECV_H +#define DT_UTLVECTOR_RECV_H +#pragma once + + +#include "dt_recv.h" +#include "dt_utlvector_common.h" + + + +#define RECVINFO_UTLVECTOR( varName ) #varName, \ + offsetof(currentRecvDTClass, varName), \ + sizeof(((currentRecvDTClass*)0)->varName[0]), \ + GetResizeUtlVectorTemplate( ((currentRecvDTClass*)0)->varName ), \ + GetEnsureCapacityTemplate( ((currentRecvDTClass*)0)->varName ) + +// Use this macro to specify a utlvector where you specify the function +// that gets called to make sure the size of the utlvector is correct. +// The size function looks like this: void ResizeUtlVector( void *pVoid, int len ) +#define RECVINFO_UTLVECTOR_SIZEFN( varName, resizeFn ) #varName, \ + offsetof(currentRecvDTClass, varName), \ + sizeof(((currentRecvDTClass*)0)->varName[0]), \ + resizeFn, \ + GetEnsureCapacityTemplate( ((currentRecvDTClass*)0)->varName ) + + +#define RecvPropUtlVectorDataTable( varName, nMaxElements, dataTableName ) \ + RecvPropUtlVector( RECVINFO_UTLVECTOR( varName ), nMaxElements, RecvPropDataTable(NULL,0,0, &REFERENCE_RECV_TABLE( dataTableName ) ) ) + + +// +// Receive a property sent with SendPropUtlVector. +// +// Example usage: +// +// RecvPropUtlVectorDataTable( m_StructArray, 11, DT_StructArray ) +// +// RecvPropUtlVector( RECVINFO_UTLVECTOR( m_FloatArray ), 16, RecvPropFloat(NULL,0,0) ) +// +RecvProp RecvPropUtlVector( + const char *pVarName, // Use RECVINFO_UTLVECTOR to generate these first 5 parameters. + int offset, + int sizeofVar, + ResizeUtlVectorFn fn, + EnsureCapacityFn ensureFn, + + int nMaxElements, // Max # of elements in the array. Keep this as low as possible. + RecvProp pArrayProp // The definition of the property you're receiving into. + // You can leave all of its parameters at 0 (name, offset, size, etc). + ); + + +#endif // DT_UTLVECTOR_RECV_H |