darope@0: // vi: set ts=4 sw=4 : darope@0: // vim: set tw=75 : darope@0: darope@0: // dllapi_post.h - prototypes and typedefs for "post" versions of HL DLL darope@0: // routines darope@0: darope@0: /* darope@0: * Copyright (c) 2001-2003 Will Day darope@0: * darope@0: * This file is part of Metamod. darope@0: * darope@0: * Metamod is free software; you can redistribute it and/or modify it darope@0: * under the terms of the GNU General Public License as published by the darope@0: * Free Software Foundation; either version 2 of the License, or (at darope@0: * your option) any later version. darope@0: * darope@0: * Metamod is distributed in the hope that it will be useful, but darope@0: * WITHOUT ANY WARRANTY; without even the implied warranty of darope@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU darope@0: * General Public License for more details. darope@0: * darope@0: * You should have received a copy of the GNU General Public License darope@0: * along with Metamod; if not, write to the Free Software Foundation, darope@0: * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA darope@0: * darope@0: * In addition, as a special exception, the author gives permission to darope@0: * link the code of this program with the Half-Life Game Engine ("HL darope@0: * Engine") and Modified Game Libraries ("MODs") developed by Valve, darope@0: * L.L.C ("Valve"). You must obey the GNU General Public License in all darope@0: * respects for all of the code used other than the HL Engine and MODs darope@0: * from Valve. If you modify this file, you may extend this exception darope@0: * to your version of the file, but you are not obligated to do so. If darope@0: * you do not wish to do so, delete this exception statement from your darope@0: * version. darope@0: * darope@0: */ darope@0: darope@0: #ifndef DLLAPI_POST_H darope@0: #define DLLAPI_POST_H darope@0: darope@0: #include // BOOL darope@0: #include darope@0: darope@0: // from SDK dlls/cbase.h: darope@0: extern int DispatchSpawn_Post( edict_t *pent ); darope@0: extern void DispatchThink_Post( edict_t *pent ); darope@0: extern void DispatchUse_Post( edict_t *pentUsed, edict_t *pentOther ); darope@0: extern void DispatchTouch_Post( edict_t *pentTouched, edict_t *pentOther ); darope@0: extern void DispatchBlocked_Post( edict_t *pentBlocked, edict_t *pentOther ); darope@0: extern void DispatchKeyValue_Post( edict_t *pentKeyvalue, KeyValueData *pkvd ); darope@0: extern void DispatchSave_Post( edict_t *pent, SAVERESTOREDATA *pSaveData ); darope@0: extern int DispatchRestore_Post( edict_t *pent, SAVERESTOREDATA *pSaveData, int globalEntity ); darope@0: extern void DispatchObjectCollsionBox_Post( edict_t *pent ); darope@0: extern void SaveWriteFields_Post( SAVERESTOREDATA *pSaveData, const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount ); darope@0: extern void SaveReadFields_Post( SAVERESTOREDATA *pSaveData, const char *pname, void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCount ); darope@0: extern void SaveGlobalState_Post( SAVERESTOREDATA *pSaveData ); darope@0: extern void RestoreGlobalState_Post( SAVERESTOREDATA *pSaveData ); darope@0: extern void ResetGlobalState_Post( void ); darope@0: darope@0: // from SDK dlls/client.h: darope@0: extern BOOL ClientConnect_Post( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] ); darope@0: extern void ClientDisconnect_Post( edict_t *pEntity ); darope@0: extern void ClientKill_Post( edict_t *pEntity ); darope@0: extern void ClientPutInServer_Post( edict_t *pEntity ); darope@0: extern void ClientCommand_Post( edict_t *pEntity ); darope@0: extern void ClientUserInfoChanged_Post( edict_t *pEntity, char *infobuffer ); darope@0: extern void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax ); darope@0: extern void ServerDeactivate_Post( void ); darope@0: extern void PlayerPreThink_Post( edict_t *pEntity ); darope@0: extern void PlayerPostThink_Post( edict_t *pEntity ); darope@0: extern void StartFrame_Post( void ); darope@0: extern void ParmsNewLevel_Post( void ); darope@0: extern void ParmsChangeLevel_Post( void ); darope@0: extern const char *GetGameDescription_Post( void ); darope@0: extern void PlayerCustomization_Post( edict_t *pEntity, customization_t *pCust ); darope@0: extern void SpectatorConnect_Post( edict_t *pEntity ); darope@0: extern void SpectatorDisconnect_Post( edict_t *pEntity ); darope@0: extern void SpectatorThink_Post( edict_t *pEntity ); darope@0: extern void Sys_Error_Post( const char *error_string ); darope@0: darope@0: // from SDK pm_shared/pm_shared.h: darope@0: extern void PM_Move_Post( struct playermove_s *ppmove, int server ); darope@0: extern void PM_Init_Post( struct playermove_s *ppmove ); darope@0: extern char PM_FindTextureType_Post( char *name ); darope@0: darope@0: // from SDK dlls/client.h: darope@0: extern void SetupVisibility_Post( edict_t *pViewEntity, edict_t *pClient, unsigned char **pvs, unsigned char **pas ); darope@0: extern void UpdateClientData_Post( const struct edict_s *ent, int sendweapons, struct clientdata_s *cd ); darope@0: 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: 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: extern void RegisterEncoders_Post( void ); darope@0: extern int GetWeaponData_Post( struct edict_s *player, struct weapon_data_s *info ); darope@0: extern void CmdStart_Post( const edict_t *player, const struct usercmd_s *cmd, unsigned int random_seed ); darope@0: extern void CmdEnd_Post( const edict_t *player ); darope@0: extern int ConnectionlessPacket_Post( const struct netadr_s *net_from, const char *args, char *response_buffer, int *response_buffer_size ); darope@0: extern int GetHullBounds_Post( int hullnumber, float *mins, float *maxs ); darope@0: extern void CreateInstancedBaselines_Post( void ); darope@0: extern int InconsistentFile_Post( const edict_t *player, const char *filename, char *disconnect_message ); darope@0: extern int AllowLagCompensation_Post( void ); darope@0: darope@0: // no example from SDK... darope@0: extern void OnFreeEntPrivateData_Post(edict_t pEnt); darope@0: extern void GameShutdown_Post(void); darope@0: extern int ShouldCollide_Post(edict_t *pentTouched, edict_t *pentOther); darope@0: darope@185: // Added 2005-08-11 (no SDK update) darope@185: void CvarValue_Post(const edict_t *pEdict, const char *szValue); darope@185: darope@185: // Added 2005-11-22 (no SDK update) darope@185: void CvarValue2_Post(const edict_t *pEdict, int requestID, const char *cvarName, const char *value); darope@185: darope@185: darope@185: #endif /* DLLAPI_POST_H */