4 // dllapi_post.h - prototypes and typedefs for "post" versions of HL DLL
10 * This file is part of Metamod.
12 * Metamod is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at
15 * your option) any later version.
17 * Metamod is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with Metamod; if not, write to the Free Software Foundation,
24 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 * In addition, as a special exception, the author gives permission to
27 * link the code of this program with the Half-Life Game Engine ("HL
28 * Engine") and Modified Game Libraries ("MODs") developed by Valve,
29 * L.L.C ("Valve"). You must obey the GNU General Public License in all
30 * respects for all of the code used other than the HL Engine and MODs
31 * from Valve. If you modify this file, you may extend this exception
32 * to your version of the file, but you are not obligated to do so. If
33 * you do not wish to do so, delete this exception statement from your
41 #include <sdk_util.h> // BOOL
44 // from SDK dlls/cbase.h:
45 extern int DispatchSpawn_Post( edict_t *pent );
46 extern void DispatchThink_Post( edict_t *pent );
47 extern void DispatchUse_Post( edict_t *pentUsed, edict_t *pentOther );
48 extern void DispatchTouch_Post( edict_t *pentTouched, edict_t *pentOther );
49 extern void DispatchBlocked_Post( edict_t *pentBlocked, edict_t *pentOther );
50 extern void DispatchKeyValue_Post( edict_t *pentKeyvalue, KeyValueData *pkvd );
51 extern void DispatchSave_Post( edict_t *pent, SAVERESTOREDATA *pSaveData );
52 extern int DispatchRestore_Post( edict_t *pent, SAVERESTOREDATA *pSaveData, int globalEntity );
53 extern void DispatchObjectCollsionBox_Post( edict_t *pent );
54 extern void SaveWriteFields_Post( SAVERESTOREDATA *pSaveData, const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount );
55 extern void SaveReadFields_Post( SAVERESTOREDATA *pSaveData, const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount );
56 extern void SaveGlobalState_Post( SAVERESTOREDATA *pSaveData );
57 extern void RestoreGlobalState_Post( SAVERESTOREDATA *pSaveData );
58 extern void ResetGlobalState_Post( void );
60 // from SDK dlls/client.h:
61 extern BOOL ClientConnect_Post( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] );
62 extern void ClientDisconnect_Post( edict_t *pEntity );
63 extern void ClientKill_Post( edict_t *pEntity );
64 extern void ClientPutInServer_Post( edict_t *pEntity );
65 extern void ClientCommand_Post( edict_t *pEntity );
66 extern void ClientUserInfoChanged_Post( edict_t *pEntity, char *infobuffer );
67 extern void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax );
68 extern void ServerDeactivate_Post( void );
69 extern void PlayerPreThink_Post( edict_t *pEntity );
70 extern void PlayerPostThink_Post( edict_t *pEntity );
71 extern void StartFrame_Post( void );
72 extern void ParmsNewLevel_Post( void );
73 extern void ParmsChangeLevel_Post( void );
74 extern const char *GetGameDescription_Post( void );
75 extern void PlayerCustomization_Post( edict_t *pEntity, customization_t *pCust );
76 extern void SpectatorConnect_Post( edict_t *pEntity );
77 extern void SpectatorDisconnect_Post( edict_t *pEntity );
78 extern void SpectatorThink_Post( edict_t *pEntity );
79 extern void Sys_Error_Post( const char *error_string );
81 // from SDK pm_shared/pm_shared.h:
82 extern void PM_Move_Post( struct playermove_s *ppmove, int server );
83 extern void PM_Init_Post( struct playermove_s *ppmove );
84 extern char PM_FindTextureType_Post( char *name );
86 // from SDK dlls/client.h:
87 extern void SetupVisibility_Post( edict_t *pViewEntity, edict_t *pClient, unsigned char **pvs, unsigned char **pas );
88 extern void UpdateClientData_Post( const struct edict_s *ent, int sendweapons, struct clientdata_s *cd );
89 extern int AddToFullPack_Post( struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet );
90 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 );
91 extern void RegisterEncoders_Post( void );
92 extern int GetWeaponData_Post( struct edict_s *player, struct weapon_data_s *info );
93 extern void CmdStart_Post( const edict_t *player, const struct usercmd_s *cmd, unsigned int random_seed );
94 extern void CmdEnd_Post( const edict_t *player );
95 extern int ConnectionlessPacket_Post( const struct netadr_s *net_from, const char *args, char *response_buffer, int *response_buffer_size );
96 extern int GetHullBounds_Post( int hullnumber, float *mins, float *maxs );
97 extern void CreateInstancedBaselines_Post( void );
98 extern int InconsistentFile_Post( const edict_t *player, const char *filename, char *disconnect_message );
99 extern int AllowLagCompensation_Post( void );
101 // no example from SDK...
102 extern void OnFreeEntPrivateData_Post(edict_t pEnt);
103 extern void GameShutdown_Post(void);
104 extern int ShouldCollide_Post(edict_t *pentTouched, edict_t *pentOther);
106 // Added 2005-08-11 (no SDK update)
107 void CvarValue_Post(const edict_t *pEdict, const char *szValue);
109 // Added 2005-11-22 (no SDK update)
110 void CvarValue2_Post(const edict_t *pEdict, int requestID, const char *cvarName, const char *value);
113 #endif /* DLLAPI_POST_H */