ReSemiclip/include/engine_rehlds_api.h
s1lentq 8cae39a981 Improved initialization of rehlds api
Prefer Sys_GetModuleHandle over Sys_LoadModule to avoid unnecessary reference count increase
2023-10-10 13:38:41 +07:00

22 lines
629 B
C

#ifndef _INCLUDE_REHLDS_API_H_
#define _INCLUDE_REHLDS_API_H_
#pragma once
extern IRehldsApi *g_RehldsApi;
extern const RehldsFuncs_t *g_RehldsFuncs;
extern IRehldsServerData *g_RehldsData;
extern IRehldsHookchains *g_RehldsHookchains;
extern IRehldsServerStatic *g_RehldsSvs;
extern bool RehldsApi_Init();
typedef struct packet_entities_s {
int num_entities;
unsigned char flags[32];
entity_state_t *entities;
} packet_entities_t;
extern int SV_CreatePacketEntities(IRehldsHook_SV_CreatePacketEntities *chain, sv_delta_t type, IGameClient *client, packet_entities_t *to, sizebuf_t *msg);
#endif //_INCLUDE_REHLDS_API_H_