trace_plugin/dllapi_post.h
changeset 0 d15304fcb7a7
child 185 a48b3f190639
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/trace_plugin/dllapi_post.h	Tue Apr 06 07:36:14 2004 +0000
     1.3 @@ -0,0 +1,106 @@
     1.4 +// vi: set ts=4 sw=4 :
     1.5 +// vim: set tw=75 :
     1.6 +
     1.7 +// dllapi_post.h - prototypes and typedefs for "post" versions of HL DLL 
     1.8 +//                 routines
     1.9 +
    1.10 +/*
    1.11 + * Copyright (c) 2001-2003 Will Day <[email protected]>
    1.12 + *
    1.13 + *    This file is part of Metamod.
    1.14 + *
    1.15 + *    Metamod is free software; you can redistribute it and/or modify it
    1.16 + *    under the terms of the GNU General Public License as published by the
    1.17 + *    Free Software Foundation; either version 2 of the License, or (at
    1.18 + *    your option) any later version.
    1.19 + *
    1.20 + *    Metamod is distributed in the hope that it will be useful, but
    1.21 + *    WITHOUT ANY WARRANTY; without even the implied warranty of
    1.22 + *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.23 + *    General Public License for more details.
    1.24 + *
    1.25 + *    You should have received a copy of the GNU General Public License
    1.26 + *    along with Metamod; if not, write to the Free Software Foundation,
    1.27 + *    Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.28 + *
    1.29 + *    In addition, as a special exception, the author gives permission to
    1.30 + *    link the code of this program with the Half-Life Game Engine ("HL
    1.31 + *    Engine") and Modified Game Libraries ("MODs") developed by Valve,
    1.32 + *    L.L.C ("Valve").  You must obey the GNU General Public License in all
    1.33 + *    respects for all of the code used other than the HL Engine and MODs
    1.34 + *    from Valve.  If you modify this file, you may extend this exception
    1.35 + *    to your version of the file, but you are not obligated to do so.  If
    1.36 + *    you do not wish to do so, delete this exception statement from your
    1.37 + *    version.
    1.38 + *
    1.39 + */
    1.40 +
    1.41 +#ifndef DLLAPI_POST_H
    1.42 +#define DLLAPI_POST_H
    1.43 +
    1.44 +#include <sdk_util.h>		// BOOL
    1.45 +#include <osdep.h>
    1.46 +
    1.47 +// from SDK dlls/cbase.h:
    1.48 +extern int DispatchSpawn_Post( edict_t *pent );
    1.49 +extern void DispatchThink_Post( edict_t *pent );
    1.50 +extern void DispatchUse_Post( edict_t *pentUsed, edict_t *pentOther );
    1.51 +extern void DispatchTouch_Post( edict_t *pentTouched, edict_t *pentOther );
    1.52 +extern void DispatchBlocked_Post( edict_t *pentBlocked, edict_t *pentOther );
    1.53 +extern void DispatchKeyValue_Post( edict_t *pentKeyvalue, KeyValueData *pkvd );
    1.54 +extern void DispatchSave_Post( edict_t *pent, SAVERESTOREDATA *pSaveData );
    1.55 +extern int  DispatchRestore_Post( edict_t *pent, SAVERESTOREDATA *pSaveData, int globalEntity );
    1.56 +extern void DispatchObjectCollsionBox_Post( edict_t *pent );
    1.57 +extern void SaveWriteFields_Post( SAVERESTOREDATA *pSaveData, const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount );
    1.58 +extern void SaveReadFields_Post( SAVERESTOREDATA *pSaveData, const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount );
    1.59 +extern void SaveGlobalState_Post( SAVERESTOREDATA *pSaveData );
    1.60 +extern void RestoreGlobalState_Post( SAVERESTOREDATA *pSaveData );
    1.61 +extern void ResetGlobalState_Post( void );
    1.62 +
    1.63 +// from SDK dlls/client.h:
    1.64 +extern BOOL ClientConnect_Post( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] );
    1.65 +extern void ClientDisconnect_Post( edict_t *pEntity );
    1.66 +extern void ClientKill_Post( edict_t *pEntity );
    1.67 +extern void ClientPutInServer_Post( edict_t *pEntity );
    1.68 +extern void ClientCommand_Post( edict_t *pEntity );
    1.69 +extern void ClientUserInfoChanged_Post( edict_t *pEntity, char *infobuffer );
    1.70 +extern void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax );
    1.71 +extern void ServerDeactivate_Post( void );
    1.72 +extern void PlayerPreThink_Post( edict_t *pEntity );
    1.73 +extern void PlayerPostThink_Post( edict_t *pEntity );
    1.74 +extern void StartFrame_Post( void );
    1.75 +extern void ParmsNewLevel_Post( void );
    1.76 +extern void ParmsChangeLevel_Post( void );
    1.77 +extern const char *GetGameDescription_Post( void );
    1.78 +extern void PlayerCustomization_Post( edict_t *pEntity, customization_t *pCust );
    1.79 +extern void SpectatorConnect_Post( edict_t *pEntity );
    1.80 +extern void SpectatorDisconnect_Post( edict_t *pEntity );
    1.81 +extern void SpectatorThink_Post( edict_t *pEntity );
    1.82 +extern void Sys_Error_Post( const char *error_string );
    1.83 +
    1.84 +// from SDK pm_shared/pm_shared.h:
    1.85 +extern void PM_Move_Post( struct playermove_s *ppmove, int server );
    1.86 +extern void PM_Init_Post( struct playermove_s *ppmove );
    1.87 +extern char PM_FindTextureType_Post( char *name );
    1.88 +
    1.89 +// from SDK dlls/client.h:
    1.90 +extern void SetupVisibility_Post( edict_t *pViewEntity, edict_t *pClient, unsigned char **pvs, unsigned char **pas );
    1.91 +extern void UpdateClientData_Post( const struct edict_s *ent, int sendweapons, struct clientdata_s *cd );
    1.92 +extern int AddToFullPack_Post( struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet );
    1.93 +extern void CreateBaseline_Post( int player, int eindex, struct entity_state_s *baseline, struct edict_s *entity, int playermodelindex, vec3_t player_mins, vec3_t player_maxs );
    1.94 +extern void RegisterEncoders_Post( void );
    1.95 +extern int GetWeaponData_Post( struct edict_s *player, struct weapon_data_s *info );
    1.96 +extern void CmdStart_Post( const edict_t *player, const struct usercmd_s *cmd, unsigned int random_seed );
    1.97 +extern void CmdEnd_Post( const edict_t *player );
    1.98 +extern int ConnectionlessPacket_Post( const struct netadr_s *net_from, const char *args, char *response_buffer, int *response_buffer_size );
    1.99 +extern int GetHullBounds_Post( int hullnumber, float *mins, float *maxs );
   1.100 +extern void CreateInstancedBaselines_Post( void );
   1.101 +extern int InconsistentFile_Post( const edict_t *player, const char *filename, char *disconnect_message );
   1.102 +extern int AllowLagCompensation_Post( void );
   1.103 +
   1.104 +// no example from SDK...
   1.105 +extern void OnFreeEntPrivateData_Post(edict_t pEnt);
   1.106 +extern void GameShutdown_Post(void);
   1.107 +extern int ShouldCollide_Post(edict_t *pentTouched, edict_t *pentOther);
   1.108 +
   1.109 +#endif /* DLLAPI_H */