2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-28 19:55:09 +01:00

engine: server: add GetNativeObject to server's PhysicsAPI

This commit is contained in:
Alibek Omarov 2023-11-01 01:55:15 +03:00
parent 5c8b5b3511
commit e11f9e05d4
2 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,10 @@ typedef struct server_physics_api_s
int (*pfnSaveFile)( const char *filename, const void *data, int len );
const byte *(*pfnLoadImagePixels)( const char *filename, int *width, int *height );
const char* (*pfnGetModelName)( int modelindex );
const char *(*pfnGetModelName)( int modelindex );
// FWGS extension
void *(*pfnGetNativeObject)( const char *object );
} server_physics_api_t;
// physic callbacks

View File

@ -2122,6 +2122,7 @@ static server_physics_api_t gPhysicsAPI =
COM_SaveFile,
pfnLoadImagePixels,
pfnGetModelName,
Sys_GetNativeObject
};
/*