2021-12-25 22:36:38 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
|
|
* _basetypes
|
|
|
|
*-----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
//#define GAMEDLL_S0 /*[r]*/
|
|
|
|
//#define GAMEDLL_S1 /*[r]*/
|
|
|
|
//#define GAMEDLL_S2 /*[i]*/
|
|
|
|
#define GAMEDLL_S3 /*[r]*/
|
|
|
|
//#define GAMEDLL_S4 /*[i]*/
|
|
|
|
//#define GAMEDLL_S7 /*[i]*/
|
|
|
|
|
|
|
|
#define MAX_SPLITSCREEN_CLIENT_BITS 2 // Max 2 player splitscreen in portal (don't merge this back), saves a bunch of memory [8/31/2010 tom]
|
|
|
|
#define MAX_SPLITSCREEN_CLIENTS ( 1 << MAX_SPLITSCREEN_CLIENT_BITS ) // 4 // this should == MAX_JOYSTICKS in InputEnums.h
|
|
|
|
|
|
|
|
#define MAX_PLAYERS 128 // Max R5 players.
|
|
|
|
|
2022-04-19 00:00:45 +02:00
|
|
|
#define SDK_VERSION "beta 1.6"/*"VGameSDK001"*/ // Increment this with every /breaking/ SDK change (i.e. security/backend changes breaking compatibility).
|
2022-04-16 00:30:46 +02:00
|
|
|
|
|
|
|
#ifndef DEDICATED
|
|
|
|
#define SDK_DEFAULT_CFG "platform\\cfg\\startup_default.cfg"
|
|
|
|
#else
|
|
|
|
#define SDK_DEFAULT_CFG "platform\\cfg\\startup_dedi_default.cfg"
|
|
|
|
#endif
|
2022-02-06 16:48:52 +01:00
|
|
|
|
|
|
|
// #define COMPILETIME_MAX and COMPILETIME_MIN for max/min in constant expressions
|
|
|
|
#define COMPILETIME_MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
|
|
|
|
#define COMPILETIME_MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
|
|
|
|
#ifndef MIN
|
|
|
|
#define MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MAX
|
|
|
|
#define MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
|
|
|
|
#endif
|
|
|
|
|
2022-05-06 00:51:49 +02:00
|
|
|
#define FORWARD_DECLARE_HANDLE(name) typedef struct name##__ *name
|
|
|
|
|
2022-04-17 02:00:06 +02:00
|
|
|
struct vrect_t
|
|
|
|
{
|
|
|
|
int x, y, width, height;
|
|
|
|
vrect_t* pnext;
|
|
|
|
};
|
|
|
|
|
2022-02-06 16:48:52 +01:00
|
|
|
constexpr int MAX_NETCONSOLE_INPUT_LEN = 4096;
|
|
|
|
constexpr int MSG_NOSIGNAL = 0;
|