|
|
@ -15,6 +15,18 @@ GNU General Public License for more details. |
|
|
|
#ifndef CDLL_EXP_H |
|
|
|
#ifndef CDLL_EXP_H |
|
|
|
#define CDLL_EXP_H |
|
|
|
#define CDLL_EXP_H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct r_studio_interface_s r_studio_interface_t; |
|
|
|
|
|
|
|
typedef struct engine_studio_api_s engine_studio_api_t; |
|
|
|
|
|
|
|
typedef struct mstudioevent_s mstudioevent_t; |
|
|
|
|
|
|
|
typedef struct local_state_s local_state_t; |
|
|
|
|
|
|
|
typedef struct playermove_s playermove_t; |
|
|
|
|
|
|
|
typedef struct tempent_s tempent_t; |
|
|
|
|
|
|
|
typedef struct physent_s physent_t; |
|
|
|
|
|
|
|
typedef struct pmtrace_s pmtrace_t; |
|
|
|
|
|
|
|
typedef struct usercmd_s usercmd_t; |
|
|
|
|
|
|
|
typedef struct netadr_s netadr_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: ordering is important!
|
|
|
|
// NOTE: ordering is important!
|
|
|
|
typedef struct cldll_func_s |
|
|
|
typedef struct cldll_func_s |
|
|
|
{ |
|
|
|
{ |
|
|
@ -24,15 +36,15 @@ typedef struct cldll_func_s |
|
|
|
int (*pfnRedraw)( float flTime, int intermission ); |
|
|
|
int (*pfnRedraw)( float flTime, int intermission ); |
|
|
|
int (*pfnUpdateClientData)( client_data_t *cdata, float flTime ); |
|
|
|
int (*pfnUpdateClientData)( client_data_t *cdata, float flTime ); |
|
|
|
void (*pfnReset)( void ); |
|
|
|
void (*pfnReset)( void ); |
|
|
|
void (*pfnPlayerMove)( struct playermove_s *ppmove, int server ); |
|
|
|
void (*pfnPlayerMove)( playermove_t *ppmove, int server ); |
|
|
|
void (*pfnPlayerMoveInit)( struct playermove_s *ppmove ); |
|
|
|
void (*pfnPlayerMoveInit)( playermove_t *ppmove ); |
|
|
|
char (*pfnPlayerMoveTexture)( char *name ); |
|
|
|
char (*pfnPlayerMoveTexture)( char *name ); |
|
|
|
void (*IN_ActivateMouse)( void ); |
|
|
|
void (*IN_ActivateMouse)( void ); |
|
|
|
void (*IN_DeactivateMouse)( void ); |
|
|
|
void (*IN_DeactivateMouse)( void ); |
|
|
|
void (*IN_MouseEvent)( int mstate ); |
|
|
|
void (*IN_MouseEvent)( int mstate ); |
|
|
|
void (*IN_ClearStates)( void ); |
|
|
|
void (*IN_ClearStates)( void ); |
|
|
|
void (*IN_Accumulate)( void ); |
|
|
|
void (*IN_Accumulate)( void ); |
|
|
|
void (*CL_CreateMove)( float frametime, struct usercmd_s *cmd, int active ); |
|
|
|
void (*CL_CreateMove)( float frametime, usercmd_t *cmd, int active ); |
|
|
|
int (*CL_IsThirdPerson)( void ); |
|
|
|
int (*CL_IsThirdPerson)( void ); |
|
|
|
void (*CL_CameraOffset)( float *ofs ); // unused
|
|
|
|
void (*CL_CameraOffset)( float *ofs ); // unused
|
|
|
|
void *(*KB_Find)( const char *name ); |
|
|
|
void *(*KB_Find)( const char *name ); |
|
|
@ -42,26 +54,26 @@ typedef struct cldll_func_s |
|
|
|
void (*pfnCreateEntities)( void ); |
|
|
|
void (*pfnCreateEntities)( void ); |
|
|
|
void (*pfnDrawNormalTriangles)( void ); |
|
|
|
void (*pfnDrawNormalTriangles)( void ); |
|
|
|
void (*pfnDrawTransparentTriangles)( void ); |
|
|
|
void (*pfnDrawTransparentTriangles)( void ); |
|
|
|
void (*pfnStudioEvent)( const struct mstudioevent_s *event, const cl_entity_t *entity ); |
|
|
|
void (*pfnStudioEvent)( const mstudioevent_t *event, const cl_entity_t *entity ); |
|
|
|
void (*pfnPostRunCmd)( struct local_state_s *from, struct local_state_s *to, usercmd_t *cmd, int runfuncs, double time, unsigned int random_seed ); |
|
|
|
void (*pfnPostRunCmd)( local_state_t *from, local_state_t *to, usercmd_t *cmd, int runfuncs, double time, unsigned int random_seed ); |
|
|
|
void (*pfnShutdown)( void ); |
|
|
|
void (*pfnShutdown)( void ); |
|
|
|
void (*pfnTxferLocalOverrides)( entity_state_t *state, const clientdata_t *client ); |
|
|
|
void (*pfnTxferLocalOverrides)( entity_state_t *state, const clientdata_t *client ); |
|
|
|
void (*pfnProcessPlayerState)( entity_state_t *dst, const entity_state_t *src ); |
|
|
|
void (*pfnProcessPlayerState)( entity_state_t *dst, const entity_state_t *src ); |
|
|
|
void (*pfnTxferPredictionData)( entity_state_t *ps, const entity_state_t *pps, clientdata_t *pcd, const clientdata_t *ppcd, weapon_data_t *wd, const weapon_data_t *pwd ); |
|
|
|
void (*pfnTxferPredictionData)( entity_state_t *ps, const entity_state_t *pps, clientdata_t *pcd, const clientdata_t *ppcd, weapon_data_t *wd, const weapon_data_t *pwd ); |
|
|
|
void (*pfnDemo_ReadBuffer)( int size, byte *buffer ); |
|
|
|
void (*pfnDemo_ReadBuffer)( int size, byte *buffer ); |
|
|
|
int (*pfnConnectionlessPacket)( const struct netadr_s *net_from, const char *args, char *buffer, int *size ); |
|
|
|
int (*pfnConnectionlessPacket)( const netadr_t *net_from, const char *args, char *buffer, int *size ); |
|
|
|
int (*pfnGetHullBounds)( int hullnumber, float *mins, float *maxs ); |
|
|
|
int (*pfnGetHullBounds)( int hullnumber, float *mins, float *maxs ); |
|
|
|
void (*pfnFrame)( double time ); |
|
|
|
void (*pfnFrame)( double time ); |
|
|
|
int (*pfnKey_Event)( int eventcode, int keynum, const char *pszCurrentBinding ); |
|
|
|
int (*pfnKey_Event)( int eventcode, int keynum, const char *pszCurrentBinding ); |
|
|
|
void (*pfnTempEntUpdate)( double frametime, double client_time, double cl_gravity, struct tempent_s **ppTempEntFree, struct tempent_s **ppTempEntActive, int ( *Callback_AddVisibleEntity )( cl_entity_t *pEntity ), void ( *Callback_TempEntPlaySound )( struct tempent_s *pTemp, float damp )); |
|
|
|
void (*pfnTempEntUpdate)( double frametime, double client_time, double cl_gravity, tempent_t **ppTempEntFree, tempent_t **ppTempEntActive, int ( *Callback_AddVisibleEntity )( cl_entity_t *pEntity ), void ( *Callback_TempEntPlaySound )( tempent_t *pTemp, float damp )); |
|
|
|
cl_entity_t *(*pfnGetUserEntity)( int index ); |
|
|
|
cl_entity_t *(*pfnGetUserEntity)( int index ); |
|
|
|
void (*pfnVoiceStatus)( int entindex, qboolean bTalking ); |
|
|
|
void (*pfnVoiceStatus)( int entindex, qboolean bTalking ); |
|
|
|
void (*pfnDirectorMessage)( int iSize, void *pbuf ); |
|
|
|
void (*pfnDirectorMessage)( int iSize, void *pbuf ); |
|
|
|
int (*pfnGetStudioModelInterface)( int version, struct r_studio_interface_s **ppinterface, struct engine_studio_api_s *pstudio ); |
|
|
|
int (*pfnGetStudioModelInterface)( int version, r_studio_interface_t **ppinterface, engine_studio_api_t *pstudio ); |
|
|
|
void (*pfnChatInputPosition)( int *x, int *y ); |
|
|
|
void (*pfnChatInputPosition)( int *x, int *y ); |
|
|
|
// Xash3D extension
|
|
|
|
// Xash3D extension
|
|
|
|
int (*pfnGetRenderInterface)( int version, render_api_t *renderfuncs, render_interface_t *callback ); |
|
|
|
int (*pfnGetRenderInterface)( int version, render_api_t *renderfuncs, render_interface_t *callback ); |
|
|
|
void (*pfnClipMoveToEntity)( struct physent_s *pe, const vec3_t start, vec3_t mins, vec3_t maxs, const vec3_t end, struct pmtrace_s *tr ); |
|
|
|
void (*pfnClipMoveToEntity)( physent_t *pe, const vec3_t start, vec3_t mins, vec3_t maxs, const vec3_t end, pmtrace_t *tr ); |
|
|
|
// Xash3D FWGS extension
|
|
|
|
// Xash3D FWGS extension
|
|
|
|
int (*pfnTouchEvent)( int type, int fingerID, float x, float y, float dx, float dy ); |
|
|
|
int (*pfnTouchEvent)( int type, int fingerID, float x, float y, float dx, float dy ); |
|
|
|
void (*pfnMoveEvent)( float forwardmove, float sidemove ); |
|
|
|
void (*pfnMoveEvent)( float forwardmove, float sidemove ); |
|
|
|