Browse Source

engine: server: add GetNativeObject to server's PhysicsAPI

master
Alibek Omarov 1 year ago
parent
commit
e11f9e05d4
  1. 3
      engine/physint.h
  2. 1
      engine/server/sv_phys.c

3
engine/physint.h

@ -108,6 +108,9 @@ typedef struct server_physics_api_s @@ -108,6 +108,9 @@ typedef struct server_physics_api_s
const byte *(*pfnLoadImagePixels)( const char *filename, int *width, int *height );
const char *(*pfnGetModelName)( int modelindex );
// FWGS extension
void *(*pfnGetNativeObject)( const char *object );
} server_physics_api_t;
// physic callbacks

1
engine/server/sv_phys.c

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

Loading…
Cancel
Save