diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/dt_localtransfer.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'engine/dt_localtransfer.h')
| -rw-r--r-- | engine/dt_localtransfer.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/engine/dt_localtransfer.h b/engine/dt_localtransfer.h new file mode 100644 index 0000000..0422a5b --- /dev/null +++ b/engine/dt_localtransfer.h @@ -0,0 +1,48 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef DT_LOCALTRANSFER_H +#define DT_LOCALTRANSFER_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "dt_send.h" +#include "dt_recv.h" + + +class CBaseEdict; + + +// This sets up the ability to copy an entity with the specified SendTable directly +// into an entity with the specified RecvTable, thus avoiding compression overhead. +void LocalTransfer_InitFastCopy( + const SendTable *pSendTable, + const CStandardSendProxies *pSendProxies, + RecvTable *pRecvTable, + const CStandardRecvProxies *pRecvProxies, + int &nSlowCopyProps, // These are incremented to tell you how many fast copy props it found. + int &nFastCopyProps + ); + +// Transfer the data from pSrcEnt to pDestEnt using the specified SendTable and RecvTable. +void LocalTransfer_TransferEntity( + const CBaseEdict *pEdict, + const SendTable *pSendTable, + const void *pSrcEnt, + RecvTable *pRecvTable, + void *pDestEnt, + bool bNewlyCreated, + bool bJustEnteredPVS, + int objectID ); + +// Call this after packing all the entities in a frame. +void PrintPartialChangeEntsList(); + + +#endif // DT_LOCALTRANSFER_H |