summaryrefslogtreecommitdiff
path: root/engine/sv_packedentities.h
blob: 60ddee1b2d6403f9b9091fb611ccd637f33ee9d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef SV_PACKEDENTITIES_H
#define SV_PACKEDENTITIES_H
#ifdef _WIN32
#pragma once
#endif


#include "server.h"
#include "framesnapshot.h"
#include "server_class.h"


void SV_ComputeClientPacks( 
	int clientCount, 
	CGameClient** clients,
	CFrameSnapshot *snapshot );

void SV_WriteSendTables( ServerClass *pClasses, bf_write &pBuf );
void SV_WriteClassInfos( ServerClass *pClasses, bf_write &pBuf );

void SV_ComputeClassInfosCRC( CRC32_t* crc );
void SV_EnsureInstanceBaseline( ServerClass *pServerClass, int iEdict, const void *pData, int nBytes );

void SV_EnableChangeFrames( bool state );


#endif // SV_PACKEDENTITIES_H