mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 21:52:05 +08:00
Apply 4150 update
This commit is contained in:
@@ -40,8 +40,16 @@ GNU General Public License for more details.
|
||||
enum
|
||||
{
|
||||
CUSTOM_NONE = 0,
|
||||
CUSTOM_SERVER_ENCODE, // keyword "gamedll"
|
||||
CUSTOM_CLIENT_ENCODE, // keyword "client"
|
||||
CUSTOM_SERVER_ENCODE, // known as "gamedll"
|
||||
CUSTOM_CLIENT_ENCODE, // known as "client"
|
||||
};
|
||||
|
||||
// don't change order!
|
||||
enum
|
||||
{
|
||||
DELTA_ENTITY = 0,
|
||||
DELTA_PLAYER,
|
||||
DELTA_STATIC,
|
||||
};
|
||||
|
||||
// struct info (filled by engine)
|
||||
@@ -114,8 +122,8 @@ void MSG_WriteClientData( sizebuf_t *msg, struct clientdata_s *from, struct clie
|
||||
void MSG_ReadClientData( sizebuf_t *msg, struct clientdata_s *from, struct clientdata_s *to, float timebase );
|
||||
void MSG_WriteWeaponData( sizebuf_t *msg, struct weapon_data_s *from, struct weapon_data_s *to, float timebase, int index );
|
||||
void MSG_ReadWeaponData( sizebuf_t *msg, struct weapon_data_s *from, struct weapon_data_s *to, float timebase );
|
||||
void MSG_WriteDeltaEntity( struct entity_state_s *from, struct entity_state_s *to, sizebuf_t *msg, qboolean force, qboolean pl, float tbase, int bl );
|
||||
qboolean MSG_ReadDeltaEntity( sizebuf_t *msg, struct entity_state_s *from, struct entity_state_s *to, int num, qboolean player, float timebase );
|
||||
void MSG_WriteDeltaEntity( struct entity_state_s *from, struct entity_state_s *to, sizebuf_t *msg, qboolean force, int type, float tbase, int ofs );
|
||||
qboolean MSG_ReadDeltaEntity( sizebuf_t *msg, struct entity_state_s *from, struct entity_state_s *to, int num, int type, float timebase );
|
||||
int Delta_TestBaseline( struct entity_state_s *from, struct entity_state_s *to, qboolean player, float timebase );
|
||||
|
||||
#endif//NET_ENCODE_H
|
||||
Reference in New Issue
Block a user