Changeset 75
- Timestamp:
- 25/11/2005 01:01:17 (5 years ago)
- Files:
-
- 1 modified
-
Mirrors/Hlsdk/multiplayer/engine/eiface.h (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Mirrors/Hlsdk/multiplayer/engine/eiface.h
r41 r75 2 2 * 3 3 * Copyright (c) 1999, Valve LLC. All rights reserved. 4 * 5 * This product contains software technology licensed from Id 6 * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 4 * 5 * This product contains software technology licensed from Id 6 * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 7 * All Rights Reserved. 8 8 * … … 86 86 87 87 // CD audio status 88 typedef struct 88 typedef struct 89 89 { 90 90 int fPlaying;// is sound playing right now? … … 187 187 void (*pfnClientPrintf) ( edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg ); // JOHN: engine callbacks so game DLL can print messages to individual clients 188 188 void (*pfnServerPrint) ( const char *szMsg ); 189 const char *(*pfnCmd_Args) ( void ); // these 3 added 190 const char *(*pfnCmd_Argv) ( int argc ); // so game DLL can easily 189 const char *(*pfnCmd_Args) ( void ); // these 3 added 190 const char *(*pfnCmd_Argv) ( int argc ); // so game DLL can easily 191 191 int (*pfnCmd_Argc) ( void ); // access client 'cmd' strings 192 192 void (*pfnGetAttachment) (const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles ); … … 269 269 // PSV: Added for CZ training map 270 270 // const char *(*pfnKeyNameForBinding) ( const char* pBinding ); 271 271 272 272 sequenceEntry_s* (*pfnSequenceGet) ( const char* fileName, const char* entryName ); 273 273 sentenceEntry_s* (*pfnSequencePickSentence) ( const char* groupName, int pickMethod, int *picked ); … … 292 292 void (*pfnResetTutorMessageDecayData) ( void ); 293 293 void (*pfnQueryClientCvarValue) ( const edict_t *player, const char *cvarName ); 294 void (*pfnQueryClientCvarValue2) ( const edict_t *player, const char *cvarName, int requestID ); 294 295 } enginefuncs_t; 295 296 … … 316 317 #define MAX_LEVEL_CONNECTIONS 16 // These are encoded in the lower 16bits of ENTITYTABLE->flags 317 318 318 typedef struct 319 typedef struct 319 320 { 320 321 int id; // Ordinal ID of this entity (used for entity <--> pointer conversions) … … 336 337 337 338 #ifdef _WIN32 338 typedef 339 typedef 339 340 #endif 340 341 struct saverestore_s … … 360 361 char szCurrentMapName[32]; // To check global entities 361 362 362 } 363 } 363 364 #ifdef _WIN32 364 SAVERESTOREDATA 365 SAVERESTOREDATA 365 366 #endif 366 367 ; … … 404 405 #define FTYPEDESC_GLOBAL 0x0001 // This field is masked for global entity save/restore 405 406 406 typedef struct 407 typedef struct 407 408 { 408 409 FIELDTYPE fieldType; … … 415 416 #define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0])) 416 417 417 typedef struct 418 typedef struct 418 419 { 419 420 // Initialize/shutdown the game (one-time call after loading of game .dll ) 420 void (*pfnGameInit) ( void ); 421 void (*pfnGameInit) ( void ); 421 422 int (*pfnSpawn) ( edict_t *pent ); 422 423 void (*pfnThink) ( edict_t *pent ); … … 437 438 438 439 qboolean (*pfnClientConnect) ( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] ); 439 440 440 441 void (*pfnClientDisconnect) ( edict_t *pEntity ); 441 442 void (*pfnClientKill) ( edict_t *pEntity ); … … 455 456 456 457 // Returns string describing current .dll. E.g., TeamFotrress 2, Half-Life 457 const char *(*pfnGetGameDescription)( void ); 458 const char *(*pfnGetGameDescription)( void ); 458 459 459 460 // Notify dll about a player customization. 460 void (*pfnPlayerCustomization) ( edict_t *pEntity, customization_t *pCustom ); 461 void (*pfnPlayerCustomization) ( edict_t *pEntity, customization_t *pCustom ); 461 462 462 463 // Spectator funcs … … 509 510 typedef struct 510 511 { 511 // Called right before the object's memory is freed. 512 // Called right before the object's memory is freed. 512 513 // Calls its destructor. 513 514 void (*pfnOnFreeEntPrivateData)(edict_t *pEnt); … … 515 516 int (*pfnShouldCollide)( edict_t *pentTouched, edict_t *pentOther ); 516 517 void (*pfnCvarValue)( const edict_t *pEnt, const char *value ); 518 void (*pfnCvarValue2)( const edict_t *pEnt, int requestID, const char *cvarName, const char *value ); 517 519 } NEW_DLL_FUNCTIONS; 518 520 typedef int (*NEW_DLL_FUNCTIONS_FN)( NEW_DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion );

