|
45 | 45 | #include "../common/hookchains.h"
|
46 | 46 |
|
47 | 47 | #define REHLDS_API_VERSION_MAJOR 3
|
48 |
| -#define REHLDS_API_VERSION_MINOR 5 |
| 48 | +#define REHLDS_API_VERSION_MINOR 6 |
49 | 49 |
|
50 | 50 | //Steam_NotifyClientConnect hook
|
51 | 51 | typedef IHookChain<qboolean, IGameClient*, const void*, unsigned int> IRehldsHook_Steam_NotifyClientConnect;
|
@@ -309,6 +309,55 @@ struct RehldsFuncs_t {
|
309 | 309 | void(*RemoveExtDll)(void *hModule);
|
310 | 310 | void(*RemoveCvarListener)(const char *var_name, cvar_callback_t func);
|
311 | 311 | ENTITYINIT(*GetEntityInit)(char *pszClassName);
|
| 312 | + |
| 313 | + // Read functions |
| 314 | + int(*MSG_ReadChar)(); |
| 315 | + int(*MSG_ReadByte)(); |
| 316 | + int(*MSG_ReadLong)(); |
| 317 | + float(*MSG_ReadFloat)(); |
| 318 | + char*(*MSG_ReadString)(); |
| 319 | + char*(*MSG_ReadStringLine)(); |
| 320 | + float(*MSG_ReadAngle)(); |
| 321 | + float(*MSG_ReadHiresAngle)(); |
| 322 | + void(*MSG_ReadUsercmd)(usercmd_t *to, usercmd_t *from); |
| 323 | + float(*MSG_ReadCoord)(); |
| 324 | + void(*MSG_ReadVec3Coord)(sizebuf_t *sb, vec3_t fa); |
| 325 | + |
| 326 | + // Read bit functions |
| 327 | + bool(*MSG_IsBitReading)(); |
| 328 | + void(*MSG_StartBitReading)(sizebuf_t *buf); |
| 329 | + void(*MSG_EndBitReading)(sizebuf_t *buf); |
| 330 | + uint32(*MSG_PeekBits)(int numbits); |
| 331 | + int(*MSG_ReadOneBit)(); |
| 332 | + uint32(*MSG_ReadBits)(int numbits); |
| 333 | + int(*MSG_ReadSBits)(int numbits); |
| 334 | + float(*MSG_ReadBitCoord)(); |
| 335 | + void(*MSG_ReadBitVec3Coord)(vec_t *fa); |
| 336 | + float(*MSG_ReadBitAngle)(int numbits); |
| 337 | + int(*MSG_ReadBitData)(void *dest, int length); |
| 338 | + char*(*MSG_ReadBitString)(); |
| 339 | + int(*MSG_CurrentBit)(); |
| 340 | + |
| 341 | + // Write functions |
| 342 | + void(*MSG_WriteLong)(sizebuf_t *sb, int c); |
| 343 | + void(*MSG_WriteFloat)(sizebuf_t *sb, float f); |
| 344 | + void(*MSG_WriteAngle)(sizebuf_t *sb, float f); |
| 345 | + void(*MSG_WriteHiresAngle)(sizebuf_t *sb, float f); |
| 346 | + void(*MSG_WriteUsercmd)(sizebuf_t *sb, usercmd_t *to, usercmd_t *from); |
| 347 | + void(*MSG_WriteCoord)(sizebuf_t *sb, float f); |
| 348 | + void(*MSG_WriteVec3Coord)(sizebuf_t *sb, const vec3_t fa); |
| 349 | + |
| 350 | + // Write bit functions |
| 351 | + bool(*MSG_IsBitWriting)(); |
| 352 | + void(*MSG_WriteOneBit)(int nValue); |
| 353 | + void(*MSG_WriteSBits)(uint32 data, int numbits); |
| 354 | + void(*MSG_WriteBitCoord)(float f); |
| 355 | + void(*MSG_WriteBitAngle)(float fAngle, int numbits); |
| 356 | + void(*MSG_WriteBitData)(void *src, int length); |
| 357 | + void(*MSG_WriteBitString)(const char *p); |
| 358 | + void(*SZ_Write)(sizebuf_t *buf, const void *data, int length); |
| 359 | + void(*SZ_Print)(sizebuf_t *buf, const char *data); |
| 360 | + void(*SZ_Clear)(sizebuf_t *buf); |
312 | 361 | };
|
313 | 362 |
|
314 | 363 | class IRehldsApi {
|
|
0 commit comments