2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2025-07-16 10:16:17 +03:00
2017-07-31 20:56:51 +07:00

21 lines
621 B
C

#pragma once
struct enginefuncs_s;
// Plugin's GetEngineFunctions, called by metamod.
typedef int (*GET_ENGINE_FUNCTIONS_FN)(enginefuncs_s* pengfuncsFromEngine, int* interfaceVersion);
// According to SDK engine/eiface.h:
// ONLY ADD NEW FUNCTIONS TO THE END OF THIS STRUCT. INTERFACE VERSION IS FROZEN AT 138
#define ENGINE_INTERFACE_VERSION 138
// Protect against other projects which use this include file but use the
// normal enginefuncs_t type for their meta_engfuncs.
#ifdef METAMOD_CORE
extern enginefuncs_t g_meta_engfuncs;
void compile_engine_callbacks();
#else
extern enginefuncs_t meta_engfuncs;
#endif