31 #include "../common/tracing.h" 32 #include "../common/grid.h" 33 #include "../common/cvar.h" 35 #define GAME_API_VERSION 10 77 typedef struct client_persistent_s {
92 inline void setLastActor(
Actor* lastActor) {
95 inline Actor* getLastActor() {
98 } client_persistent_t;
117 client_persistent_t pers;
119 inline void reset () {
122 inline bool isInUse ()
const {
125 inline void setInUse (
bool inuse) {
128 inline int getNum (
void)
const {
131 inline void setNum (
int num) {
134 inline bool isReady ()
const {
137 inline void setReady (
bool ready) {
140 inline int getTeam (
void)
const {
143 inline void setTeam (
int team) {
173 typedef struct game_import_s {
212 const char* (
IMPORT* GetFootstepSound) (
const char* texture);
213 float (
IMPORT* GetBounceFraction) (
const char* texture);
268 void (
IMPORT* QueueEvent) (
unsigned int mask,
int eType,
int entnum);
271 void (
IMPORT* QueueWriteString) (
const char* s);
288 bool (
IMPORT* GetConstIntFromNamespace) (
const char* space,
const char*
name,
int*
value);
289 const char* (
IMPORT* GetConstVariable) (
const char* space,
int value);
291 bool (
IMPORT* UnregisterConstVariable) (
const char*
name);
297 void* (
IMPORT* TagMalloc) (
int size,
int tag,
const char* file,
int line);
299 void (
IMPORT* FreeTags) (
int tag,
const char* file,
int line);
302 cvar_t* (
IMPORT*
Cvar_Get) (
const char* varName,
const char* value,
int flags,
const char* desc);
304 const
char* (
IMPORT* Cvar_String) (const
char* varName);
317 typedef struct game_export_s {
344 const char* (
EXPORT* ClientGetName) (
int pnum);
const char * Cmd_Argv(int arg)
Returns a given argument.
const GridBox const char ** list
void setInUse(bool inuse)
bool const char * entstring
game_export_t * GetGameAPI(game_import_t *import)
Returns a pointer to the structure with all entry points and global variables.
Describes a character with all its attributes.
solid_t
edict->solid values
int FS_LoadFile(const char *path, byte **buffer)
Filenames are relative to the quake search path.
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
const char * FS_Gamedir(void)
Called to find where to write a file (savegames, etc)
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
const vec3_t const int const char ** entlist
pathing_t const pos3_t const pos3_t targetPos
int Cmd_Argc(void)
Return the number of arguments of the current command. "command parameter" will result in a argc of 2...
void setReady(bool ready)
functions exported by the game subsystem
Interface to game library.
QGL_EXTERN void(APIENTRY *qglActiveTexture)(GLenum texture)
functions provided by the main engine
A list of locations that cannot be moved to.
The csi structure is the client-server-information structure which contains all the static data neede...
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
FILE * Sys_Fopen(const char *filename, const char *mode)
cvar_t * Cvar_Set(const char *varName, const char *value,...)
Sets a cvar value.
const vec3_t float bool bool vec3_t v0
This is a cvar definition. Cvars can be user modified and used in our menus e.g.
const char * Cmd_Args(void)
Returns a single string containing argv(1) to argv(argc()-1)
void format(__printf__, 1, 2)))
void FS_FreeFile(void *buffer)
const AABB const edict_t * passent