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