Changeset 77

Show
Ignore:
Timestamp:
25/11/2005 01:43:24 (5 years ago)
Author:
niluje
Message:

Clean SDK

Location:
Mirrors
Files:
175 removed
1 modified

Legend:

Unmodified
Added
Removed
  • Mirrors/MetaMod-P/metamod/hlsdk/engine/eiface.h

    r41 r77  
    22* 
    33*       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. 
    77*       All Rights Reserved. 
    88* 
     
    8686 
    8787// CD audio status 
    88 typedef struct  
     88typedef struct 
    8989{ 
    9090        int     fPlaying;// is sound playing right now? 
     
    197197        void            (*pfnClientPrintf)                      ( edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg ); // JOHN: engine callbacks so game DLL can print messages to individual clients 
    198198        void            (*pfnServerPrint)                       ( const char *szMsg ); 
    199         const char *(*pfnCmd_Args)                              ( void );               // these 3 added  
    200         const char *(*pfnCmd_Argv)                              ( int argc );   // so game DLL can easily  
     199        const char *(*pfnCmd_Args)                              ( void );               // these 3 added 
     200        const char *(*pfnCmd_Argv)                              ( int argc );   // so game DLL can easily 
    201201        int                     (*pfnCmd_Argc)                          ( void );               // access client 'cmd' strings 
    202202        void            (*pfnGetAttachment)                     (const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles ); 
     
    283283        // PSV: Added for CZ training map 
    284284//      const char *(*pfnKeyNameForBinding)                                     ( const char* pBinding ); 
    285          
     285 
    286286        sequenceEntry_s*        (*pfnSequenceGet)                               ( const char* fileName, const char* entryName ); 
    287287        sentenceEntry_s*        (*pfnSequencePickSentence)              ( const char* groupName, int pickMethod, int *picked ); 
     
    305305        void            (*pfnConstructTutorMessageDecayBuffer)  (int *buffer, int bufferLength); 
    306306        void            (*pfnResetTutorMessageDecayData)                ( void ); 
    307          
     307 
    308308        // Added 2005/08/11 (no SDK update): 
    309         void            (*pfnQueryClientCvarValue)              ( const edict_t *player, const char *cvarName );   
     309        void            (*pfnQueryClientCvarValue)              ( const edict_t *player, const char *cvarName ); 
     310 
     311        void            (*pfnQueryClientCvarValue2)             ( const edict_t *player, const char *cvarName, int requestID ); 
    310312 
    311313#ifdef __METAMOD_BUILD__ 
     
    341343#define MAX_LEVEL_CONNECTIONS   16              // These are encoded in the lower 16bits of ENTITYTABLE->flags 
    342344 
    343 typedef struct  
     345typedef struct 
    344346{ 
    345347        int                     id;                             // Ordinal ID of this entity (used for entity <--> pointer conversions) 
     
    361363 
    362364#ifdef _WIN32 
    363 typedef  
     365typedef 
    364366#endif 
    365367struct saverestore_s 
     
    385387        char            szCurrentMapName[32];   // To check global entities 
    386388 
    387 }  
     389} 
    388390#ifdef _WIN32 
    389 SAVERESTOREDATA  
     391SAVERESTOREDATA 
    390392#endif 
    391393; 
     
    431433#define FTYPEDESC_GLOBAL                        0x0001          // This field is masked for global entity save/restore 
    432434 
    433 typedef struct  
     435typedef struct 
    434436{ 
    435437        FIELDTYPE               fieldType; 
     
    442444#define ARRAYSIZE(p)            (sizeof(p)/sizeof(p[0])) 
    443445 
    444 typedef struct  
     446typedef struct 
    445447{ 
    446448        // Initialize/shutdown the game (one-time call after loading of game .dll ) 
    447         void                    (*pfnGameInit)                  ( void );                                
     449        void                    (*pfnGameInit)                  ( void ); 
    448450        int                             (*pfnSpawn)                             ( edict_t *pent ); 
    449451        void                    (*pfnThink)                             ( edict_t *pent ); 
     
    464466 
    465467        qboolean                (*pfnClientConnect)             ( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] ); 
    466          
     468 
    467469        void                    (*pfnClientDisconnect)  ( edict_t *pEntity ); 
    468470        void                    (*pfnClientKill)                ( edict_t *pEntity ); 
     
    482484 
    483485         // Returns string describing current .dll.  E.g., TeamFotrress 2, Half-Life 
    484         const char     *(*pfnGetGameDescription)( void );      
     486        const char     *(*pfnGetGameDescription)( void ); 
    485487 
    486488        // Notify dll about a player customization. 
    487         void            (*pfnPlayerCustomization) ( edict_t *pEntity, customization_t *pCustom );   
     489        void            (*pfnPlayerCustomization) ( edict_t *pEntity, customization_t *pCustom ); 
    488490 
    489491        // Spectator funcs 
     
    536538typedef struct 
    537539{ 
    538         // Called right before the object's memory is freed.  
     540        // Called right before the object's memory is freed. 
    539541        // Calls its destructor. 
    540542        void                    (*pfnOnFreeEntPrivateData)(edict_t *pEnt); 
    541543        void                    (*pfnGameShutdown)(void); 
    542544        int                             (*pfnShouldCollide)( edict_t *pentTouched, edict_t *pentOther ); 
    543          
     545 
    544546        // Added 2005/08/11 (no SDK update): 
    545         void                    (*pfnCvarValue)( const edict_t *pEnt, const char *value );  
     547        void                    (*pfnCvarValue)( const edict_t *pEnt, const char *value ); 
     548        void                    (*pfnCvarValue2)( const edict_t *pEnt, int requestID, const char *cvarName, const char *value ); 
    546549} NEW_DLL_FUNCTIONS; 
    547550typedef int     (*NEW_DLL_FUNCTIONS_FN)( NEW_DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion );