mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 15:41:59 +00:00
Switch to C-style function declarations.
Doxygen hates the QuakeC-style function prototypes we use, so switch to the C-style prototypes.
This commit is contained in:
parent
de8a9cd6cd
commit
4bd37e7b64
31 changed files with 431 additions and 453 deletions
|
@ -1,66 +1,69 @@
|
||||||
#ifndef __ruamoko_Object_h
|
#ifndef __ruamoko_Object_h
|
||||||
#define __ruamoko_Object_h
|
#define __ruamoko_Object_h
|
||||||
|
|
||||||
|
/**
|
||||||
|
Standard boolean type
|
||||||
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
NO,
|
NO, ///< false
|
||||||
YES,
|
YES, ///< true
|
||||||
} BOOL;
|
} BOOL;
|
||||||
|
|
||||||
@extern void (id object, integer code, string fmt, ...) obj_error;
|
@extern void obj_error (id object, integer code, string fmt, ...);
|
||||||
@extern void (id object, integer code, string fmt, @va_list args) obj_verror;
|
@extern void obj_verror (id object, integer code, string fmt, @va_list args);
|
||||||
//obj_error_handler (objc_error_handler func) obj_set_error_handler;
|
//obj_error_handler obj_set_error_handler (objc_error_handler func);
|
||||||
@extern IMP (id receiver, SEL op) obj_msg_lookup;
|
@extern IMP obj_msg_lookup (id receiver, SEL op);
|
||||||
@extern IMP (Super class, SEL op) obj_msg_lookup_super;
|
@extern IMP obj_msg_lookup_super (Super class, SEL op);
|
||||||
@extern @param (id receiver, SEL op, @va_list args) obj_msg_sendv;
|
@extern @param obj_msg_sendv (id receiver, SEL op, @va_list args);
|
||||||
@extern (void []) (integer size) obj_malloc;
|
@extern (void []) obj_malloc (integer size);
|
||||||
@extern (void []) (integer size) obj_atomic_malloc;
|
@extern (void []) obj_atomic_malloc (integer size);
|
||||||
@extern (void []) (integer size) obj_valloc;
|
@extern (void []) obj_valloc (integer size);
|
||||||
@extern (void []) (void [] mem, integer size) obj_realloc;
|
@extern (void []) obj_realloc (void [] mem, integer size);
|
||||||
@extern (void []) (integer nelem, integer size) obj_calloc;
|
@extern (void []) obj_calloc (integer nelem, integer size);
|
||||||
@extern void (void [] mem) obj_free;
|
@extern void obj_free (void [] mem);
|
||||||
//(void []) (void) obj_get_uninstalled_dtable;
|
//(void []) obj_get_uninstalled_dtable (void);
|
||||||
|
|
||||||
@extern Class (string name) obj_get_class;
|
@extern Class obj_get_class (string name);
|
||||||
@extern Class (string name) obj_lookup_class;
|
@extern Class obj_lookup_class (string name);
|
||||||
//Class (void [][] enum_stage) obj_next_class;
|
//Class obj_next_class (void [][] enum_stage);
|
||||||
|
|
||||||
@extern string (SEL selector) sel_get_name;
|
@extern string sel_get_name (SEL selector);
|
||||||
@extern string (SEL selector) sel_get_type;
|
@extern string sel_get_type (SEL selector);
|
||||||
@extern SEL (string name) sel_get_uid;
|
@extern SEL sel_get_uid (string name);
|
||||||
//@extern SEL (string name) sel_get_any_uid;
|
//@extern SEL sel_get_any_uid (string name);
|
||||||
//@extern SEL (string name) sel_get_any_typed_uid;
|
//@extern SEL sel_get_any_typed_uid (string name);
|
||||||
//@extern SEL (string name, string type) sel_get_typed_uid;
|
//@extern SEL sel_get_typed_uid (string name, string type);
|
||||||
@extern SEL (string name) sel_register_name;
|
@extern SEL sel_register_name (string name);
|
||||||
//@extern SEL (string name, string type) sel_register_typed_name;
|
//@extern SEL sel_register_typed_name (string name, string type);
|
||||||
@extern BOOL (SEL aSel) sel_is_mapped;
|
@extern BOOL sel_is_mapped (SEL aSel);
|
||||||
|
|
||||||
@extern Method (Class class, SEL aSel) class_get_class_method;
|
@extern Method class_get_class_method (Class class, SEL aSel);
|
||||||
@extern Method (Class class, SEL aSel) class_get_instance_method;
|
@extern Method class_get_instance_method (Class class, SEL aSel);
|
||||||
@extern Class (Class imposter, Class superclass) class_pose_as;
|
@extern Class class_pose_as (Class imposter, Class superclass);
|
||||||
@extern id (Class class) class_create_instance;
|
@extern id class_create_instance (Class class);
|
||||||
@extern string (Class class) class_get_class_name;
|
@extern string class_get_class_name (Class class);
|
||||||
@extern integer (Class class) class_get_instance_size;
|
@extern integer class_get_instance_size (Class class);
|
||||||
@extern Class (Class class) class_get_meta_class;
|
@extern Class class_get_meta_class (Class class);
|
||||||
@extern Class (Class class) class_get_super_class;
|
@extern Class class_get_super_class (Class class);
|
||||||
@extern integer (Class class) class_get_version;
|
@extern integer class_get_version (Class class);
|
||||||
@extern BOOL (Class class) class_is_class;
|
@extern BOOL class_is_class (Class class);
|
||||||
@extern BOOL (Class class) class_is_meta_class;
|
@extern BOOL class_is_meta_class (Class class);
|
||||||
@extern void (Class class, integer version) class_set_version;
|
@extern void class_set_version (Class class, integer version);
|
||||||
@extern (void []) (Class class) class_get_gc_object_type;
|
@extern (void []) class_get_gc_object_type (Class class);
|
||||||
@extern void (Class class, string ivarname, BOOL gcInvisible) class_ivar_set_gcinvisible;
|
@extern void class_ivar_set_gcinvisible (Class class, string ivarname, BOOL gcInvisible);
|
||||||
|
|
||||||
@extern IMP (Method method) method_get_imp;
|
@extern IMP method_get_imp (Method method);
|
||||||
@extern IMP (Class class, SEL sel) get_imp;
|
@extern IMP get_imp (Class class, SEL sel);
|
||||||
|
|
||||||
@extern id (id object) object_copy;
|
@extern id object_copy (id object);
|
||||||
@extern id (id object) object_dispose;
|
@extern id object_dispose (id object);
|
||||||
@extern Class (id object) object_get_class;
|
@extern Class object_get_class (id object);
|
||||||
@extern string (id object) object_get_class_name;
|
@extern string object_get_class_name (id object);
|
||||||
@extern Class (id object) object_get_meta_class;
|
@extern Class object_get_meta_class (id object);
|
||||||
@extern Class (id object) object_get_super_class;
|
@extern Class object_get_super_class (id object);
|
||||||
@extern BOOL (id object) object_is_class;
|
@extern BOOL object_is_class (id object);
|
||||||
@extern BOOL (id object) object_is_instance;
|
@extern BOOL object_is_instance (id object);
|
||||||
@extern BOOL (id object) object_is_meta_class;
|
@extern BOOL object_is_meta_class (id object);
|
||||||
|
|
||||||
@class Protocol;
|
@class Protocol;
|
||||||
|
|
||||||
|
@ -93,13 +96,15 @@ typedef enum {
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@protocol Copying
|
@protocol Copying
|
||||||
|
/**
|
||||||
|
Returns a copy of the receiver.
|
||||||
|
*/
|
||||||
- copy;
|
- copy;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@protocol MutableCopying
|
/**
|
||||||
- mutableCopy;
|
The Ruamoko root class
|
||||||
@end
|
*/
|
||||||
|
|
||||||
@interface Object <Object>
|
@interface Object <Object>
|
||||||
{
|
{
|
||||||
Class isa;
|
Class isa;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef __ruamoko_cbuf_h
|
#ifndef __ruamoko_cbuf_h
|
||||||
#define __ruamoko_cbuf_h
|
#define __ruamoko_cbuf_h
|
||||||
|
|
||||||
@extern void (string text) Cbuf_AddText;
|
@extern void Cbuf_AddText (string text);
|
||||||
@extern void (string text) Cbuf_InsertText;
|
@extern void Cbuf_InsertText (string text);
|
||||||
@extern void () Cbuf_Execute;
|
@extern void Cbuf_Execute (void);
|
||||||
@extern void () Cbuf_Execute_Sets;
|
@extern void Cbuf_Execute_Sets (void);
|
||||||
|
|
||||||
#endif//__ruamoko_cbuf_h
|
#endif//__ruamoko_cbuf_h
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#ifndef __ruamoko_cmd_h
|
#ifndef __ruamoko_cmd_h
|
||||||
#define __ruamoko_cmd_h
|
#define __ruamoko_cmd_h
|
||||||
|
|
||||||
@extern void (string name, void () func) Cmd_AddCommand;
|
@extern void Cmd_AddCommand (string name, void () func);
|
||||||
@extern integer () Cmd_Argc;
|
@extern integer Cmd_Argc (void);
|
||||||
@extern string (integer arg) Cmd_Argv;
|
@extern string Cmd_Argv (integer arg);
|
||||||
@extern string (integer arg) Cmd_Args;
|
@extern string Cmd_Args (integer arg);
|
||||||
|
|
||||||
#endif//__ruamoko_cmd_h
|
#endif//__ruamoko_cmd_h
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#ifndef __ruamoko_crudefile_h
|
#ifndef __ruamoko_crudefile_h
|
||||||
#define __ruamoko_crudefile_h
|
#define __ruamoko_crudefile_h
|
||||||
|
|
||||||
@extern float (string path, string mode) cfopen;
|
@extern float cfopen (string path, string mode);
|
||||||
@extern void (float desc) cfclose;
|
@extern void cfclose (float desc);
|
||||||
@extern string (float desc) cfread;
|
@extern string cfread (float desc);
|
||||||
@extern float (float desc, string buf) cfwrite;
|
@extern float cfwrite (float desc, string buf);
|
||||||
@extern float (float desc) cfeof;
|
@extern float cfeof (float desc);
|
||||||
@extern float () cfquota;
|
@extern float cfquota (void);
|
||||||
|
|
||||||
#endif//__ruamoko_crudefile_h
|
#endif//__ruamoko_crudefile_h
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#ifndef __ruamoko_cvar_h
|
#ifndef __ruamoko_cvar_h
|
||||||
#define __ruamoko_cvar_h
|
#define __ruamoko_cvar_h
|
||||||
|
|
||||||
@extern void (string varname, string value) Cvar_SetString;
|
@extern void Cvar_SetString (string varname, string value);
|
||||||
@extern void (string varname, float value) Cvar_SetFloat;
|
@extern void Cvar_SetFloat (string varname, float value);
|
||||||
@extern void (string varname, integer value) Cvar_SetInteger;
|
@extern void Cvar_SetInteger (string varname, integer value);
|
||||||
@extern void (string varname, vector value) Cvar_SetVector;
|
@extern void Cvar_SetVector (string varname, vector value);
|
||||||
@extern string (string varname) Cvar_GetString;
|
@extern string Cvar_GetString (string varname);
|
||||||
@extern float (string varname) Cvar_GetFloat;
|
@extern float Cvar_GetFloat (string varname);
|
||||||
@extern integer (string varname) Cvar_GetInteger;
|
@extern integer Cvar_GetInteger (string varname);
|
||||||
@extern vector (string varname) Cvar_GetVector;
|
@extern vector Cvar_GetVector (string varname);
|
||||||
@extern void (string varname) Cvar_Toggle;
|
@extern void Cvar_Toggle (string varname);
|
||||||
|
|
||||||
#endif//__ruamoko_cvar_h
|
#endif//__ruamoko_cvar_h
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
/*
|
/**
|
||||||
debug.h
|
\file debug.h
|
||||||
|
|
||||||
Debugging function definitions
|
Debugging function definitions
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
Copyright (C) 2002 Bill Currie <taniwha@quakeforge.net>
|
Copyright (C) 2002 Bill Currie <taniwha@quakeforge.net>
|
||||||
Copyright (C) 2002 Jeff Teunissen <deek@quakeforge.net>
|
Copyright (C) 2002 Jeff Teunissen <deek@quakeforge.net>
|
||||||
|
|
||||||
|
@ -25,82 +27,53 @@
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
59 Temple Place - Suite 330
|
59 Temple Place - Suite 330
|
||||||
Boston, MA 02111-1307, USA
|
Boston, MA 02111-1307, USA
|
||||||
|
|
||||||
$Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ruamoko_debug_h
|
#ifndef __ruamoko_debug_h
|
||||||
#define __ruamoko_debug_h
|
#define __ruamoko_debug_h
|
||||||
|
|
||||||
#ifdef __RUA_INTERNAL_IMPLEMENT
|
/**
|
||||||
# undef BUILTIN
|
Tell the engine to abort (stop) code processing.
|
||||||
# define BUILTIN(name, number, rettype, ...) \
|
\note In QuakeC, this was break().
|
||||||
rettype (__VA_ARGS__) name = number
|
*/
|
||||||
#else
|
@extern void abort (void);
|
||||||
# undef BUILTIN
|
|
||||||
# define BUILTIN(name, number, rettype, ...) \
|
|
||||||
rettype (__VA_ARGS__) name
|
|
||||||
@extern {
|
|
||||||
#endif // __RUA_INTERNAL_IMPLEMENT
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
abort (in QuakeC, this was break)
|
Tell the engine to print all edicts (entities)
|
||||||
|
*/
|
||||||
|
@extern void coredump (void);
|
||||||
|
|
||||||
Tell the engine to abort (stop) code processing.
|
/**
|
||||||
*/
|
Enable instruction trace in the interpreter
|
||||||
BUILTIN (abort, #6, void, void);
|
*/
|
||||||
|
@extern void traceon (void);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
coredump
|
traceoff
|
||||||
|
|
||||||
Tell the engine to print all edicts (entities)
|
Disable instruction trace in the interpreter
|
||||||
*/
|
*/
|
||||||
BUILTIN (coredump, #28, void, void);
|
@extern void traceoff (void);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
traceon
|
Print all information on an entity to the console
|
||||||
|
*/
|
||||||
|
@extern void eprint (entity e);
|
||||||
|
|
||||||
Enable instruction trace in the interpreter
|
/**
|
||||||
*/
|
Print a string to the console if the "developer" Cvar is nonzero.
|
||||||
BUILTIN (traceon, #29, void, void);
|
*/
|
||||||
|
@extern void dprint (string str);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
traceoff
|
Abort (crash) the server. "str" is the message the server crashes with.
|
||||||
|
*/
|
||||||
|
@extern void error (string str);
|
||||||
|
|
||||||
Disable instruction trace in the interpreter
|
/**
|
||||||
*/
|
Prints info on the "self" ENTITY (not object), and error message "e".
|
||||||
BUILTIN (traceoff, #30, void, void);
|
The entity is freed.
|
||||||
|
*/
|
||||||
/*
|
@extern void objerror (string e);
|
||||||
eprint
|
|
||||||
|
|
||||||
Print all information on an entity to the console
|
|
||||||
*/
|
|
||||||
BUILTIN (eprint, #31, void, entity e);
|
|
||||||
|
|
||||||
/*
|
|
||||||
dprint
|
|
||||||
|
|
||||||
Print a string to the console if the "developer" Cvar is nonzero.
|
|
||||||
*/
|
|
||||||
BUILTIN (dprint, #25, void, string str);
|
|
||||||
|
|
||||||
/*
|
|
||||||
error
|
|
||||||
|
|
||||||
Abort (crash) the server. "str" is the message the server crashes with.
|
|
||||||
*/
|
|
||||||
BUILTIN (error, #10, void, string str);
|
|
||||||
|
|
||||||
/*
|
|
||||||
objerror
|
|
||||||
|
|
||||||
Prints info on the "self" ENTITY (not object), and error message "e".
|
|
||||||
The entity is freed.
|
|
||||||
*/
|
|
||||||
BUILTIN (objerror, #10, void, string e);
|
|
||||||
|
|
||||||
#ifndef __RUA_INTERNAL_IMPLEMENT
|
|
||||||
};
|
|
||||||
#endif // __RUA_INTERNAL_IMPLEMENT
|
|
||||||
|
|
||||||
#endif //__ruamoko_debug_h
|
#endif //__ruamoko_debug_h
|
||||||
|
|
|
@ -9,19 +9,19 @@ struct _qpic_t {
|
||||||
};
|
};
|
||||||
typedef struct _qpic_t [] qpic_t;
|
typedef struct _qpic_t [] qpic_t;
|
||||||
|
|
||||||
@extern qpic_t (string name, integer alpha) Draw_CachePic;
|
@extern qpic_t Draw_CachePic (string name, integer alpha);
|
||||||
|
|
||||||
@extern void (integer x, integer y, qpic_t pic) Draw_Pic;
|
@extern void Draw_Pic (integer x, integer y, qpic_t pic);
|
||||||
@extern void (integer x, integer y, qpic_t pic, integer srcx, integer srcy, integer width, integer height) Draw_SubPic;
|
@extern void Draw_SubPic (integer x, integer y, qpic_t pic, integer srcx, integer srcy, integer width, integer height);
|
||||||
@extern void (integer x, integer y, qpic_t pic) Draw_CenterPic;
|
@extern void Draw_CenterPic (integer x, integer y, qpic_t pic);
|
||||||
|
|
||||||
@extern void (integer x, integer y, integer chr) Draw_Character;
|
@extern void Draw_Character (integer x, integer y, integer chr);
|
||||||
@extern void (integer x, integer y, string text) Draw_String;
|
@extern void Draw_String (integer x, integer y, string text);
|
||||||
@extern void (integer x, integer y, string text, integer n) Draw_nString;
|
@extern void Draw_nString (integer x, integer y, string text, integer n);
|
||||||
@extern void (integer x, integer y, string text) Draw_AltString;
|
@extern void Draw_AltString (integer x, integer y, string text);
|
||||||
@extern void (integer x, integer y, integer w, integer h, integer c) Draw_Fill;
|
@extern void Draw_Fill (integer x, integer y, integer w, integer h, integer c);
|
||||||
@extern void (integer ch, integer x, integer y) Draw_Crosshair;
|
@extern void Draw_Crosshair (integer ch, integer x, integer y);
|
||||||
@extern void (integer x, integer y, integer width, integer lines) text_box;
|
@extern void text_box (integer x, integer y, integer width, integer lines);
|
||||||
|
|
||||||
@interface QPic : Object
|
@interface QPic : Object
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
|
/**
|
||||||
|
\file entities.h
|
||||||
|
|
||||||
|
Built-in functions for dealing with Quake entities.
|
||||||
|
These builtin functions create, modify, delete, etc. Quake entities.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
entities.h
|
|
||||||
|
|
||||||
Entity function prototypes
|
|
||||||
|
|
||||||
Copyright (C) 2002 Bill Currie <taniwha@quakeforge.net>
|
Copyright (C) 2002 Bill Currie <taniwha@quakeforge.net>
|
||||||
Copyright (C) 2002 Jeff Teunissen <deek@quakeforge.net>
|
Copyright (C) 2002 Jeff Teunissen <deek@quakeforge.net>
|
||||||
|
|
||||||
|
@ -31,111 +34,84 @@
|
||||||
#ifndef __ruamoko_entities_h
|
#ifndef __ruamoko_entities_h
|
||||||
#define __ruamoko_entities_h
|
#define __ruamoko_entities_h
|
||||||
|
|
||||||
#ifdef __RUA_INTERNAL_IMPLEMENT
|
///\name Server-only entity functions
|
||||||
# undef BUILTIN
|
///\{
|
||||||
# define BUILTIN(name, number, rettype, ...) \
|
/**
|
||||||
rettype (__VA_ARGS__) name = number
|
Sets the model name for %entity \a e to string \a m.
|
||||||
#else
|
Set the entity's move type and solid type before calling.
|
||||||
# undef BUILTIN
|
*/
|
||||||
# define BUILTIN(name, number, rettype, ...) \
|
@extern void setmodel (entity e, string m);
|
||||||
rettype (__VA_ARGS__) name
|
|
||||||
@extern {
|
|
||||||
#endif // __RUA_INTERNAL_IMPLEMENT
|
|
||||||
|
|
||||||
/*
|
/**
|
||||||
setmodel
|
Sets origin for %entity \a e to vector \a o.
|
||||||
|
*/
|
||||||
|
@extern void setorigin (entity e, vector o);
|
||||||
|
|
||||||
Sets the model name for entity e to string m.
|
/**
|
||||||
Set the entity's move type and solid type before calling.
|
Set the size of %entity \a e to a cube with the bounds
|
||||||
SERVER ONLY
|
( xmin ymin zmin ) ( xmax ymax zmax )
|
||||||
*/
|
*/
|
||||||
BUILTIN (setmodel, #3, void, entity e, string m);
|
@extern void setsize (entity e, vector min, vector max);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
setorigin
|
Creates a new %entity and returns it.
|
||||||
|
*/
|
||||||
|
@extern entity spawn (void);
|
||||||
|
|
||||||
Sets origin for entity e to vector o.
|
/**
|
||||||
SERVER ONLY
|
Remove %entity e.
|
||||||
*/
|
*/
|
||||||
BUILTIN (setorigin, #2, void, entity e, vector o);
|
@extern void remove (entity e);
|
||||||
|
|
||||||
/*
|
/**
|
||||||
setsize
|
If none found, world is returned.
|
||||||
|
If >1 found, the next will be linked using the "chain" field.
|
||||||
|
*/
|
||||||
|
@extern entity findradius (vector origin, float radius);
|
||||||
|
|
||||||
Set the size of entity e to a cube with the bounds ( x1 y1 z1 ) ( x2 y2 z2 )
|
/**
|
||||||
SERVER ONLY
|
Make %entity e static (part of the world).
|
||||||
*/
|
Static entities do not interact with the game.
|
||||||
BUILTIN (setsize, #4, void, entity e, vector min, vector max);
|
*/
|
||||||
|
@extern void makestatic (entity e);
|
||||||
|
|
||||||
/*
|
@extern void setspawnparms (entity e);
|
||||||
spawn
|
//\}
|
||||||
|
|
||||||
Creates a new entity and returns it.
|
///\name Client/Server entity functions
|
||||||
SERVER ONLY
|
///\{
|
||||||
*/
|
|
||||||
BUILTIN (spawn, #14, entity, void);
|
|
||||||
|
|
||||||
/*
|
|
||||||
remove
|
|
||||||
|
|
||||||
Remove entity e.
|
|
||||||
SERVER ONLY
|
|
||||||
*/
|
|
||||||
BUILTIN (remove, #15, void, entity e);
|
|
||||||
|
|
||||||
/*
|
|
||||||
find
|
|
||||||
|
|
||||||
Search all entities for a field with contents matching a value and
|
|
||||||
return the first matching entity.
|
|
||||||
|
|
||||||
start: the edict from which to start.
|
|
||||||
field: The field to search.
|
|
||||||
match: The contents to search for.
|
|
||||||
|
|
||||||
This function must be called multiple times to get multiple results.
|
|
||||||
Stupid, but functional.
|
|
||||||
*/
|
|
||||||
#ifdef __VERSION6__
|
#ifdef __VERSION6__
|
||||||
BUILTIN (find, #18, entity, entity start, .string field, string match);
|
/**
|
||||||
|
Search all entities for a field with contents matching a value and
|
||||||
|
return the first matching entity.
|
||||||
|
|
||||||
|
\param start the edict from which to start.
|
||||||
|
\param field The field to search.
|
||||||
|
\param match The contents to search for.
|
||||||
|
|
||||||
|
This function must be called multiple times to get multiple results.
|
||||||
|
Stupid, but functional.
|
||||||
|
*/
|
||||||
|
@extern entity find (entity start, .string field, string match);
|
||||||
#else
|
#else
|
||||||
BUILTIN (find, #18, entity, entity start, ...);
|
/**
|
||||||
|
Search all entities for a field with contents matching a value and
|
||||||
|
return the first matching entity.
|
||||||
|
|
||||||
|
\param start the edict from which to start.
|
||||||
|
|
||||||
|
This function must be called multiple times to get multiple results.
|
||||||
|
Stupid, but functional.
|
||||||
|
*/
|
||||||
|
@extern entity find (entity start, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/**
|
||||||
findradius
|
Return next entity after e. Use for traversing all entities.
|
||||||
|
%Entity zero (the world) is returned if no more exist.
|
||||||
Search for entities within radius of origin.
|
*/
|
||||||
|
@extern entity nextent (entity e);
|
||||||
If none found, world is returned.
|
|
||||||
If >1 found, the next will be linked using the "chain" field.
|
|
||||||
SERVER ONLY
|
|
||||||
*/
|
|
||||||
BUILTIN (findradius, #22, entity, vector origin, float radius);
|
|
||||||
|
|
||||||
/*
|
|
||||||
nextent
|
|
||||||
|
|
||||||
Return next entity after e. Use for traversing all entities.
|
|
||||||
Entity zero (the world) is returned if no more exist.
|
|
||||||
*/
|
|
||||||
BUILTIN (nextent, #47, entity, entity e);
|
|
||||||
|
|
||||||
/*
|
|
||||||
makestatic
|
|
||||||
|
|
||||||
Make entity e static (part of the world).
|
|
||||||
Static entities do not interact with the game.
|
|
||||||
SERVER ONLY
|
|
||||||
*/
|
|
||||||
BUILTIN (makestatic, #69, void, entity e);
|
|
||||||
|
|
||||||
BUILTIN (setspawnparms, #78, void, entity e);
|
|
||||||
|
|
||||||
BUILTIN (EntityParseFunction, #0, void, void (string ent_data) func);
|
|
||||||
|
|
||||||
#ifndef __RUA_INTERNAL_IMPLEMENT
|
|
||||||
};
|
|
||||||
#endif // __RUA_INTERNAL_IMPLEMENT
|
|
||||||
|
|
||||||
|
@extern void EntityParseFunction (void (string ent_data) func);
|
||||||
|
///\}
|
||||||
#endif //__ruamoko_entities_h
|
#endif //__ruamoko_entities_h
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
|
|
||||||
#include "qfile.h"
|
#include "qfile.h"
|
||||||
|
|
||||||
@extern QFile (string path, string mode) File_Open;
|
@extern QFile File_Open (string path, string mode);
|
||||||
|
|
||||||
#endif//__ruamoko_file_h
|
#endif//__ruamoko_file_h
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __ruamoko_gib_h
|
#ifndef __ruamoko_gib_h
|
||||||
#define __ruamoko_gib_h
|
#define __ruamoko_gib_h
|
||||||
|
|
||||||
@extern void (string name, void (integer argc, string [] argv) func) GIB_Builtin_Add;
|
@extern void GIB_Builtin_Add (string name, void (integer argc, string [] argv) func);
|
||||||
@extern integer (string value) GIB_Return;
|
@extern integer GIB_Return (string value);
|
||||||
|
|
||||||
#endif//__ruamoko_gib_h
|
#endif//__ruamoko_gib_h
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
struct _hashtab_t {};
|
struct _hashtab_t {};
|
||||||
typedef struct _hashtab_t [] hashtab_t;
|
typedef struct _hashtab_t [] hashtab_t;
|
||||||
|
|
||||||
@extern hashtab_t (integer size, string (void []ele, void []data) gk, void (void []ele, void []data) f, void [] ud) Hash_NewTable;
|
@extern hashtab_t Hash_NewTable (integer size, string (void []ele, void []data) gk, void (void []ele, void []data) f, void [] ud);
|
||||||
@extern void (hashtab_t tab, unsigned (void []ele, void []data) gh, integer (void [] ele1, void [] ele2, void [] data) cmp) Hash_SetHashCompare;
|
@extern void Hash_SetHashCompare (hashtab_t tab, unsigned (void []ele, void []data) gh, integer (void [] ele1, void [] ele2, void [] data) cmp);
|
||||||
@extern void (hashtab_t tab) Hash_DelTable;
|
@extern void Hash_DelTable (hashtab_t tab);
|
||||||
@extern void (hashtab_t tab) Hash_FlushTable;
|
@extern void Hash_FlushTable (hashtab_t tab);
|
||||||
@extern integer (hashtab_t tab, void [] ele) Hash_Add;
|
@extern integer Hash_Add (hashtab_t tab, void [] ele);
|
||||||
@extern integer (hashtab_t tab, void [] ele) Hash_AddElement;
|
@extern integer Hash_AddElement (hashtab_t tab, void [] ele);
|
||||||
@extern (void []) (hashtab_t tab, string key) Hash_Find;
|
@extern (void []) Hash_Find (hashtab_t tab, string key);
|
||||||
@extern (void []) (hashtab_t tab, void [] ele) Hash_FindElement;
|
@extern (void []) Hash_FindElement (hashtab_t tab, void [] ele);
|
||||||
@extern (void [][]) (hashtab_t tab, string key) Hash_FindList;
|
@extern (void [][]) Hash_FindList (hashtab_t tab, string key);
|
||||||
@extern (void [][]) (hashtab_t tab, void [] ele) Hash_FindElementList;
|
@extern (void [][]) Hash_FindElementList (hashtab_t tab, void [] ele);
|
||||||
@extern (void []) (hashtab_t tab, string key) Hash_Del;
|
@extern (void []) Hash_Del (hashtab_t tab, string key);
|
||||||
@extern (void []) (hashtab_t tab, void [] ele) Hash_DelElement;
|
@extern (void []) Hash_DelElement (hashtab_t tab, void [] ele);
|
||||||
@extern void (hashtab_t tab, void [] ele) Hash_Free;
|
@extern void Hash_Free (hashtab_t tab, void [] ele);
|
||||||
@extern integer (string str) Hash_String;
|
@extern integer Hash_String (string str);
|
||||||
@extern integer (void [] buf, integer len) Hash_Buffer;
|
@extern integer Hash_Buffer (void [] buf, integer len);
|
||||||
@extern (void [][]) (hashtab_t tab) Hash_GetList;
|
@extern (void [][]) Hash_GetList (hashtab_t tab);
|
||||||
@extern void (hashtab_t tab) Hash_Stats;
|
@extern void Hash_Stats (hashtab_t tab);
|
||||||
|
|
||||||
#endif // __ruamoko_hash_h
|
#endif // __ruamoko_hash_h
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __ruamoko_infokey_h
|
#ifndef __ruamoko_infokey_h
|
||||||
#define __ruamoko_infokey_h
|
#define __ruamoko_infokey_h
|
||||||
|
|
||||||
@extern string (entity e, string key) infokey;
|
@extern string infokey (entity e, string key);
|
||||||
@extern void (entity ent, string key, string value) setinfokey;
|
@extern void setinfokey (entity ent, string key, string value);
|
||||||
|
|
||||||
#endif//__ruamoko_infokey_h
|
#endif//__ruamoko_infokey_h
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#define __ruamoko_key_h
|
#define __ruamoko_key_h
|
||||||
|
|
||||||
#include "QF/keys.h"
|
#include "QF/keys.h"
|
||||||
@extern string (integer target, integer keynum, string binding) Key_SetBinding;
|
@extern string Key_SetBinding (integer target, integer keynum, string binding);
|
||||||
@extern integer (integer target, integer bindnum, string binding) Key_LookupBinding;
|
@extern integer Key_LookupBinding (integer target, integer bindnum, string binding);
|
||||||
@extern integer (integer target, string binding) Key_CountBinding;
|
@extern integer Key_CountBinding (integer target, string binding);
|
||||||
@extern string (integer keynum) Key_KeynumToString;
|
@extern string Key_KeynumToString (integer keynum);
|
||||||
|
|
||||||
#endif//__ruamoko_key_h
|
#endif//__ruamoko_key_h
|
||||||
|
|
|
@ -36,21 +36,21 @@
|
||||||
|
|
||||||
Generate a random number such that 0 <= num <= 1 (0 to 1 inclusive)
|
Generate a random number such that 0 <= num <= 1 (0 to 1 inclusive)
|
||||||
*/
|
*/
|
||||||
@extern float () random;
|
@extern float random (void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ftoi
|
ftoi
|
||||||
|
|
||||||
Returns the integer component of f
|
Returns the integer component of f
|
||||||
*/
|
*/
|
||||||
@extern integer (float f) ftoi;
|
@extern integer ftoi (float f);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
itof
|
itof
|
||||||
|
|
||||||
Returns the float representation of i
|
Returns the float representation of i
|
||||||
*/
|
*/
|
||||||
@extern float (integer i) itof;
|
@extern float itof (integer i);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
rint
|
rint
|
||||||
|
@ -58,28 +58,28 @@
|
||||||
Rounds v to the nearest integer value and returns it.
|
Rounds v to the nearest integer value and returns it.
|
||||||
rint() does not change the type.
|
rint() does not change the type.
|
||||||
*/
|
*/
|
||||||
@extern float (float v) rint;
|
@extern float rint (float v);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
floor
|
floor
|
||||||
|
|
||||||
Returns v, rounded down to the next lower integer
|
Returns v, rounded down to the next lower integer
|
||||||
*/
|
*/
|
||||||
@extern float (float v) floor;
|
@extern float floor (float v);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ceil
|
ceil
|
||||||
|
|
||||||
Returns v, rounded up to the next highest integer
|
Returns v, rounded up to the next highest integer
|
||||||
*/
|
*/
|
||||||
@extern float (float v) ceil;
|
@extern float ceil (float v);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
fabs
|
fabs
|
||||||
|
|
||||||
Returns the absolute value of v
|
Returns the absolute value of v
|
||||||
*/
|
*/
|
||||||
@extern float (float f) fabs;
|
@extern float fabs (float f);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* VECTORS *
|
* VECTORS *
|
||||||
|
@ -93,44 +93,44 @@
|
||||||
Transform vector v into a unit vector (a vector with a length of 1).
|
Transform vector v into a unit vector (a vector with a length of 1).
|
||||||
The direction is not changed, except for (possible) roundoff errors.
|
The direction is not changed, except for (possible) roundoff errors.
|
||||||
*/
|
*/
|
||||||
@extern vector (vector v) normalize;
|
@extern vector normalize (vector v);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
vlen
|
vlen
|
||||||
|
|
||||||
Return the length of vector v
|
Return the length of vector v
|
||||||
*/
|
*/
|
||||||
@extern float (vector v) vlen;
|
@extern float vlen (vector v);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
vectoyaw
|
vectoyaw
|
||||||
|
|
||||||
Returns the yaw angle ("bearing"), in degrees, associated with vector v.
|
Returns the yaw angle ("bearing"), in degrees, associated with vector v.
|
||||||
*/
|
*/
|
||||||
@extern float (vector v) vectoyaw;
|
@extern float vectoyaw (vector v);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
vectoangles
|
vectoangles
|
||||||
|
|
||||||
Returns a vector 'pitch yaw 0' corresponding to vector v.
|
Returns a vector 'pitch yaw 0' corresponding to vector v.
|
||||||
*/
|
*/
|
||||||
@extern vector (vector v) vectoangles;
|
@extern vector vectoangles (vector v);
|
||||||
|
|
||||||
@extern float (float x) sin;
|
@extern float sin (float x);
|
||||||
@extern float (float x) cos;
|
@extern float cos (float x);
|
||||||
@extern float (float x) tan;
|
@extern float tan (float x);
|
||||||
@extern float (float x) asin;
|
@extern float asin (float x);
|
||||||
@extern float (float x) acos;
|
@extern float acos (float x);
|
||||||
@extern float (float x) atan;
|
@extern float atan (float x);
|
||||||
@extern float (float y, float x) atan2;
|
@extern float atan2 (float y, float x);
|
||||||
@extern float (float x) log;
|
@extern float log (float x);
|
||||||
@extern float (float x) log10;
|
@extern float log10 (float x);
|
||||||
@extern float (float x, float y) pow;
|
@extern float pow (float x, float y);
|
||||||
@extern float (float x) sinh;
|
@extern float sinh (float x);
|
||||||
@extern float (float x) cosh;
|
@extern float cosh (float x);
|
||||||
@extern float (float x) tanh;
|
@extern float tanh (float x);
|
||||||
@extern float (float x) asinh;
|
@extern float asinh (float x);
|
||||||
@extern float (float x) acosh;
|
@extern float acosh (float x);
|
||||||
@extern float (float x) atanh;
|
@extern float atanh (float x);
|
||||||
|
|
||||||
#endif //__ruamoko_math_h
|
#endif //__ruamoko_math_h
|
||||||
|
|
|
@ -34,19 +34,19 @@
|
||||||
#define MULTICAST_PHS_R 4
|
#define MULTICAST_PHS_R 4
|
||||||
#define MULTICAST_PVS_R 5
|
#define MULTICAST_PVS_R 5
|
||||||
|
|
||||||
@extern void (...) bprint;
|
@extern void bprint (...);
|
||||||
@extern void (entity client, string s) sprint;
|
@extern void sprint (entity client, string s);
|
||||||
@extern void (float to, ...) WriteBytes;
|
@extern void WriteBytes (float to, ...);
|
||||||
@extern void (float to, float f) WriteByte;
|
@extern void WriteByte (float to, float f);
|
||||||
@extern void (float to, float f) WriteChar;
|
@extern void WriteChar (float to, float f);
|
||||||
@extern void (float to, float f) WriteShort;
|
@extern void WriteShort (float to, float f);
|
||||||
@extern void (float to, float f) WriteLong;
|
@extern void WriteLong (float to, float f);
|
||||||
@extern void (float to, float f) WriteCoord;
|
@extern void WriteCoord (float to, float f);
|
||||||
@extern void (float to, float f) WriteAngle;
|
@extern void WriteAngle (float to, float f);
|
||||||
@extern void (float to, vector v) WriteCoordV;
|
@extern void WriteCoordV (float to, vector v);
|
||||||
@extern void (float to, vector v) WriteAngleV;
|
@extern void WriteAngleV (float to, vector v);
|
||||||
@extern void (float to, string s) WriteString;
|
@extern void WriteString (float to, string s);
|
||||||
@extern void (float to, entity s) WriteEntity;
|
@extern void WriteEntity (float to, entity s);
|
||||||
@extern void (...) centerprint;
|
@extern void centerprint (...);
|
||||||
|
|
||||||
#endif//__ruamoko_message_h
|
#endif//__ruamoko_message_h
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef __ruamoko_nq_message_h
|
#ifndef __ruamoko_nq_message_h
|
||||||
#define __ruamoko_nq_message_h
|
#define __ruamoko_nq_message_h
|
||||||
|
|
||||||
@extern void (vector o, vector d, float color, float count) particle;
|
@extern void particle (vector o, vector d, float color, float count);
|
||||||
|
|
||||||
#endif//__ruamoko_nq_message_h
|
#endif//__ruamoko_nq_message_h
|
||||||
|
|
|
@ -16,21 +16,21 @@
|
||||||
|
|
||||||
Set v_forward, v_up, v_right global vectors from the vector ang
|
Set v_forward, v_up, v_right global vectors from the vector ang
|
||||||
*/
|
*/
|
||||||
@extern void (vector ang) makevectors;
|
@extern void makevectors (vector ang);
|
||||||
@extern void (vector v1, vector v2, float nomonsters, entity forent) traceline;
|
@extern void traceline (vector v1, vector v2, float nomonsters, entity forent);
|
||||||
@extern entity () checkclient;
|
@extern entity checkclient ();
|
||||||
@extern float (float yaw, float dist) walkmove;
|
@extern float walkmove (float yaw, float dist);
|
||||||
@extern float () droptofloor;
|
@extern float droptofloor ();
|
||||||
@extern void (float style, string value) lightstyle;
|
@extern void lightstyle (float style, string value);
|
||||||
@extern float (entity e) checkbottom;
|
@extern float checkbottom (entity e);
|
||||||
@extern float (vector v) pointcontents;
|
@extern float pointcontents (vector v);
|
||||||
@extern vector (entity e, float speed) aim;
|
@extern vector aim (entity e, float speed);
|
||||||
@extern void () ChangeYaw;
|
@extern void ChangeYaw (void);
|
||||||
@extern void (float step) movetogoal;
|
@extern void movetogoal (float step);
|
||||||
@extern integer (entity ent, vector point) hullpointcontents;
|
@extern integer hullpointcontents (entity ent, vector point);
|
||||||
@extern vector (integer hull, integer max) getboxbounds;
|
@extern vector getboxbounds (integer hull, integer max);
|
||||||
@extern integer () getboxhull;
|
@extern integer getboxhull (void);
|
||||||
@extern void (integer hull) freeboxhull;
|
@extern void freeboxhull (integer hull);
|
||||||
@extern void (integer hull, vector right, vector forward, vector up, vector mins, vector maxs) rotate_bbox;
|
@extern void rotate_bbox (integer hull, vector right, vector forward, vector up, vector mins, vector maxs);
|
||||||
|
|
||||||
#endif//__ruamoko_physics_h
|
#endif//__ruamoko_physics_h
|
||||||
|
|
|
@ -8,25 +8,25 @@ struct plitem_s {integer dummy;};
|
||||||
typedef struct plitem_s plitem_t;
|
typedef struct plitem_s plitem_t;
|
||||||
typedef enum {QFDictionary, QFArray, QFBinary, QFString} pltype_t; // possible types
|
typedef enum {QFDictionary, QFArray, QFBinary, QFString} pltype_t; // possible types
|
||||||
|
|
||||||
@extern plitem_t (QFile file) PL_GetFromFile;
|
@extern plitem_t PL_GetFromFile (QFile file);
|
||||||
@extern plitem_t (string str) PL_GetPropertyList;
|
@extern plitem_t PL_GetPropertyList (string str);
|
||||||
@extern string (plitem_t pl) PL_WritePropertyList;
|
@extern string PL_WritePropertyList (plitem_t pl);
|
||||||
@extern pltype_t (plitem_t str) PL_Type;
|
@extern pltype_t PL_Type (plitem_t str);
|
||||||
@extern string (plitem_t str) PL_String;
|
@extern string PL_String (plitem_t str);
|
||||||
@extern plitem_t (plitem_t item, string key) PL_ObjectForKey;
|
@extern plitem_t PL_ObjectForKey (plitem_t item, string key);
|
||||||
@extern plitem_t (plitem_t item, string key) PL_RemoveObjectForKey;
|
@extern plitem_t PL_RemoveObjectForKey (plitem_t item, string key);
|
||||||
@extern plitem_t (plitem_t item, integer index) PL_ObjectAtIndex;
|
@extern plitem_t PL_ObjectAtIndex (plitem_t item, integer index);
|
||||||
@extern plitem_t (plitem_t item) PL_D_AllKeys;
|
@extern plitem_t PL_D_AllKeys (plitem_t item);
|
||||||
@extern integer (plitem_t item) PL_D_NumKeys;
|
@extern integer PL_D_NumKeys (plitem_t item);
|
||||||
@extern integer (plitem_t dict, string key, plitem_t value) PL_D_AddObject;
|
@extern integer PL_D_AddObject (plitem_t dict, string key, plitem_t value);
|
||||||
@extern integer (plitem_t array_item, plitem_t item) PL_A_AddObject;
|
@extern integer PL_A_AddObject (plitem_t array_item, plitem_t item);
|
||||||
@extern integer (plitem_t item) PL_A_NumObjects;
|
@extern integer PL_A_NumObjects (plitem_t item);
|
||||||
@extern integer (plitem_t array_item, plitem_t item, integer index) PL_A_InsertObjectAtIndex;
|
@extern integer PL_A_InsertObjectAtIndex (plitem_t array_item, plitem_t item, integer index);
|
||||||
@extern plitem_t (plitem_t array_item, integer index) PL_RemoveObjectAtIndex;
|
@extern plitem_t PL_RemoveObjectAtIndex (plitem_t array_item, integer index);
|
||||||
@extern plitem_t () PL_NewDictionary;
|
@extern plitem_t PL_NewDictionary ();
|
||||||
@extern plitem_t () PL_NewArray;
|
@extern plitem_t PL_NewArray ();
|
||||||
@extern plitem_t (void []data, integer len) PL_NewData;
|
@extern plitem_t PL_NewData (void []data, integer len);
|
||||||
@extern plitem_t (string str) PL_NewString;
|
@extern plitem_t PL_NewString (string str);
|
||||||
@extern void (plitem_t pl) PL_Free;
|
@extern void PL_Free (plitem_t pl);
|
||||||
|
|
||||||
#endif//__ruamoko_plist_h
|
#endif//__ruamoko_plist_h
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
struct _qfile_t {};
|
struct _qfile_t {};
|
||||||
typedef struct _qfile_t [] QFile;
|
typedef struct _qfile_t [] QFile;
|
||||||
|
|
||||||
@extern integer (string old, string new) Qrename;
|
@extern integer Qrename (string old, string new);
|
||||||
@extern integer (string path) Qremove;
|
@extern integer Qremove (string path);
|
||||||
@extern QFile (string path, string mode) Qopen;
|
@extern QFile Qopen (string path, string mode);
|
||||||
@extern void (QFile file) Qclose;
|
@extern void Qclose (QFile file);
|
||||||
@extern string (QFile file) Qgetline;
|
@extern string Qgetline (QFile file);
|
||||||
@extern string (QFile file, integer len) Qreadstring;
|
@extern string Qreadstring (QFile file, integer len);
|
||||||
@extern integer (QFile file, void [] buf, integer count) Qread;
|
@extern integer Qread (QFile file, void [] buf, integer count);
|
||||||
@extern integer (QFile file, void [] buf, integer count) Qwrite;
|
@extern integer Qwrite (QFile file, void [] buf, integer count);
|
||||||
@extern integer (QFile file, string str) Qputs;
|
@extern integer Qputs (QFile file, string str);
|
||||||
//@extern integer (QFile file, void [] buf, integer count) Qgets;
|
//@extern integer Qgets (QFile file, void [] buf, integer count);
|
||||||
@extern integer (QFile file) Qgetc;
|
@extern integer Qgetc (QFile file);
|
||||||
@extern integer (QFile file, integer c) Qputc;
|
@extern integer Qputc (QFile file, integer c);
|
||||||
@extern integer (QFile file, integer offset, integer whence) Qseek;
|
@extern integer Qseek (QFile file, integer offset, integer whence);
|
||||||
@extern integer (QFile file) Qtell;
|
@extern integer Qtell (QFile file);
|
||||||
@extern integer (QFile file) Qflush;
|
@extern integer Qflush (QFile file);
|
||||||
@extern integer (QFile file) Qeof;
|
@extern integer Qeof (QFile file);
|
||||||
@extern integer (QFile file) Qfilesize;
|
@extern integer Qfilesize (QFile file);
|
||||||
|
|
||||||
#endif//__ruamoko_qfile_h
|
#endif//__ruamoko_qfile_h
|
||||||
|
|
|
@ -9,13 +9,13 @@ struct _qfslist_t {
|
||||||
};
|
};
|
||||||
typedef struct _qfslist_t [] QFSlist;
|
typedef struct _qfslist_t [] QFSlist;
|
||||||
|
|
||||||
@extern QFile (string path, string mode) QFS_Open;
|
@extern QFile QFS_Open (string path, string mode);
|
||||||
@extern QFile (string path, integer zip) QFS_WOpen;
|
@extern QFile QFS_WOpen (string path, integer zip);
|
||||||
@extern integer (string old, string new) QFS_Rename;
|
@extern integer QFS_Rename (string old, string new);
|
||||||
@extern (void []) (string filename) QFS_LoadFile;
|
@extern (void []) QFS_LoadFile (string filename);
|
||||||
@extern QFile (string filename) QFS_OpenFile;
|
@extern QFile QFS_OpenFile (string filename);
|
||||||
@extern integer (string filename, void [] buf, integer count) QFS_WriteFile;
|
@extern integer QFS_WriteFile (string filename, void [] buf, integer count);
|
||||||
@extern QFSlist (string path, string ext, integer strip) QFS_Filelist;
|
@extern QFSlist QFS_Filelist (string path, string ext, integer strip);
|
||||||
@extern void (QFSlist list) QFS_FilelistFree;
|
@extern void QFS_FilelistFree (QFSlist list);
|
||||||
|
|
||||||
#endif//__ruamoko_qfs_h
|
#endif//__ruamoko_qfs_h
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
|
|
||||||
#include "message.h"
|
#include "message.h"
|
||||||
|
|
||||||
@extern void (vector where, float set) multicast;
|
@extern void multicast (vector where, float set);
|
||||||
|
|
||||||
#endif//__ruamoko_qw_message_h
|
#endif//__ruamoko_qw_message_h
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __ruamoko_qw_physics_h
|
#ifndef __ruamoko_qw_physics_h
|
||||||
#define __ruamoko_qw_physics_h
|
#define __ruamoko_qw_physics_h
|
||||||
|
|
||||||
@extern entity (entity ent) testentitypos;
|
@extern entity testentitypos (entity ent);
|
||||||
@extern void (vector start, vector mins, vector maxs, vector end, float type, entity passent) checkmove;
|
@extern void checkmove (vector start, vector mins, vector maxs, vector end, float type, entity passent);
|
||||||
|
|
||||||
#endif//__ruamoko_qw_physics_h
|
#endif//__ruamoko_qw_physics_h
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef __ruamoko_qw_sys_h
|
#ifndef __ruamoko_qw_sys_h
|
||||||
#define __ruamoko_qw_sys_h
|
#define __ruamoko_qw_sys_h
|
||||||
|
|
||||||
@extern void (entity killer, entity killee) logfrag;
|
@extern void logfrag (entity killer, entity killee);
|
||||||
|
|
||||||
#endif//__ruamoko_qw_sys_h
|
#endif//__ruamoko_qw_sys_h
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
#ifndef __ruamoko_server_h
|
#ifndef __ruamoko_server_h
|
||||||
#define __ruamoko_server_h
|
#define __ruamoko_server_h
|
||||||
|
|
||||||
@extern void (string s) precache_sound;
|
@extern void precache_sound (string s);
|
||||||
@extern void (string s) precache_model;
|
@extern void precache_model (string s);
|
||||||
@extern void (entity client, string s) stuffcmd;
|
@extern void stuffcmd (entity client, string s);
|
||||||
@extern void (string s) localcmd;
|
@extern void localcmd (string s);
|
||||||
@extern void (string s) changelevel;
|
@extern void changelevel (string s);
|
||||||
@extern string (string s) precache_file;
|
@extern string precache_file (string s);
|
||||||
@extern string (string s) precache_model2;
|
@extern string precache_model2 (string s);
|
||||||
@extern string (string s) precache_sound2;
|
@extern string precache_sound2 (string s);
|
||||||
@extern string (string s) precache_file2;
|
@extern string precache_file2 (string s);
|
||||||
@extern float () checkextension;
|
@extern float checkextension (void);
|
||||||
|
|
||||||
#endif//__ruamoko_server_h
|
#endif//__ruamoko_server_h
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef __ruamoko_sound_h
|
#ifndef __ruamoko_sound_h
|
||||||
#define __ruamoko_sound_h
|
#define __ruamoko_sound_h
|
||||||
|
|
||||||
@extern void (string sound) S_LocalSound;
|
@extern void S_LocalSound (string sound);
|
||||||
|
|
||||||
#endif//__ruamoko_sound_h
|
#endif//__ruamoko_sound_h
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
#ifndef __ruamoko_string_h
|
#ifndef __ruamoko_string_h
|
||||||
#define __ruamoko_string_h
|
#define __ruamoko_string_h
|
||||||
|
|
||||||
@extern string (float f) ftos;
|
@extern string ftos (float f);
|
||||||
@extern string (vector v) vtos;
|
@extern string vtos (vector v);
|
||||||
@extern float (string s) stof;
|
@extern float stof (string s);
|
||||||
@extern float (string s) strlen;
|
@extern float strlen (string s);
|
||||||
@extern float (string goal, string s) charcount;
|
@extern float charcount (string goal, string s);
|
||||||
@extern string (string fmt, ...) sprintf;
|
@extern string sprintf (string fmt, ...);
|
||||||
@extern string (integer i) itos;
|
@extern string itos (integer i);
|
||||||
@extern integer (string s) stoi;
|
@extern integer stoi (string s);
|
||||||
@extern vector (string s) stov;
|
@extern vector stov (string s);
|
||||||
|
|
||||||
@extern string (void) str_new;
|
@extern string str_new (void);
|
||||||
@extern string (string str) str_free;
|
@extern string str_free (string str);
|
||||||
@extern string (string dst, string src) str_copy;
|
@extern string str_copy (string dst, string src);
|
||||||
@extern string (string dst, string src) str_cat;
|
@extern string str_cat (string dst, string src);
|
||||||
@extern string (string str) str_clear;
|
@extern string str_clear (string str);
|
||||||
@extern string (string str, integer start) @overload str_mid;
|
@extern @overload string str_mid (string str, integer start);
|
||||||
@extern string (string str, integer start, integer len) @overload str_mid;
|
@extern @overload string str_mid (string str, integer start, integer len);
|
||||||
@extern string (string haystack, string needle) str_str;
|
@extern string str_str (string haystack, string needle);
|
||||||
|
|
||||||
#endif//__ruamoko_string_h
|
#endif//__ruamoko_string_h
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#define ATTN_IDLE 2
|
#define ATTN_IDLE 2
|
||||||
#define ATTN_STATIC 3
|
#define ATTN_STATIC 3
|
||||||
|
|
||||||
@extern void (entity e, float chan, string samp, float vol, float atten) sound;
|
@extern void sound (entity e, float chan, string samp, float vol, float atten);
|
||||||
@extern void (vector pos, string samp, float vol, float atten) ambientsound;
|
@extern void ambientsound (vector pos, string samp, float vol, float atten);
|
||||||
|
|
||||||
#endif//__ruamoko_sound_h
|
#endif//__ruamoko_sound_h
|
||||||
|
|
|
@ -3,18 +3,18 @@
|
||||||
|
|
||||||
@extern float time;
|
@extern float time;
|
||||||
|
|
||||||
@extern void (string s) precache_sound;
|
@extern void precache_sound (string s);
|
||||||
@extern void (string s) precache_model;
|
@extern void precache_model (string s);
|
||||||
@extern void (entity client, string s) stuffcmd;
|
@extern void stuffcmd (entity client, string s);
|
||||||
@extern float (string s) cvar;
|
@extern float cvar (string s);
|
||||||
@extern void (string s) localcmd;
|
@extern void localcmd (string s);
|
||||||
@extern void (string s) changelevel;
|
@extern void changelevel (string s);
|
||||||
@extern void (string var, string val) cvar_set;
|
@extern void cvar_set (string var, string val);
|
||||||
@extern string (string s) precache_file;
|
@extern string precache_file (string s);
|
||||||
@extern string (string s) precache_model2;
|
@extern string precache_model2 (string s);
|
||||||
@extern string (string s) precache_sound2;
|
@extern string precache_sound2 (string s);
|
||||||
@extern string (string s) precache_file2;
|
@extern string precache_file2 (string s);
|
||||||
@extern float () checkextension;
|
@extern float checkextension (void);
|
||||||
@extern string () gametype;
|
@extern string gametype (void);
|
||||||
|
|
||||||
#endif//__ruamoko_system_h
|
#endif//__ruamoko_system_h
|
||||||
|
|
|
@ -1,2 +1,10 @@
|
||||||
#define __RUA_INTERNAL_IMPLEMENT
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
|
void abort (void) = #6;
|
||||||
|
void coredump (void) = #28;
|
||||||
|
void traceon (void) = #29;
|
||||||
|
void traceoff (void) = #30;
|
||||||
|
void eprint (entity e) = #31;
|
||||||
|
void dprint (string str) = #25;
|
||||||
|
void error (string str) = #10;
|
||||||
|
void objerror (string e) = #11;
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
#define __RUA_INTERNAL_IMPLEMENT
|
|
||||||
#include "entities.h"
|
#include "entities.h"
|
||||||
|
|
||||||
|
void setmodel (entity e, string m) = #3;
|
||||||
|
void setorigin (entity e, vector o) = #2;
|
||||||
|
void setsize (entity e, vector min, vector max) = #4;
|
||||||
|
entity spawn (void) = #14;
|
||||||
|
void remove (entity e) = #15;
|
||||||
|
#ifdef __VERSION6__
|
||||||
|
entity find (entity start, .string field, string match) = #18;
|
||||||
|
#else
|
||||||
|
entity find (entity start, ...) = #18;
|
||||||
|
#endif
|
||||||
|
entity findradius (vector origin, float radius) = #22;
|
||||||
|
entity nextent (entity e) = #47;
|
||||||
|
void makestatic (entity e) = #69;
|
||||||
|
void setspawnparms (entity e) = #78;
|
||||||
|
|
||||||
|
void EntityParseFunction (void (string ent_data) func) = #0;
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
#include "plist.h"
|
#include "plist.h"
|
||||||
|
|
||||||
plitem_t (QFile file) PL_GetFromFile = #0;
|
plitem_t PL_GetFromFile (QFile file) = #0;
|
||||||
plitem_t (string str) PL_GetPropertyList = #0;
|
plitem_t PL_GetPropertyList (string str) = #0;
|
||||||
string (plitem_t pl) PL_WritePropertyList = #0;
|
string PL_WritePropertyList (plitem_t pl) = #0;
|
||||||
pltype_t (plitem_t str) PL_Type = #0;
|
pltype_t PL_Type (plitem_t str) = #0;
|
||||||
string (plitem_t str) PL_String = #0;
|
string PL_String (plitem_t str) = #0;
|
||||||
plitem_t (plitem_t item, string key) PL_ObjectForKey = #0;
|
plitem_t PL_ObjectForKey (plitem_t item, string key) = #0;
|
||||||
plitem_t (plitem_t item, string key) PL_RemoveObjectForKey = #0;
|
plitem_t PL_RemoveObjectForKey (plitem_t item, string key) = #0;
|
||||||
plitem_t (plitem_t item, integer index) PL_ObjectAtIndex = #0;
|
plitem_t PL_ObjectAtIndex (plitem_t item, integer index) = #0;
|
||||||
plitem_t (plitem_t item) PL_D_AllKeys = #0;
|
plitem_t PL_D_AllKeys (plitem_t item) = #0;
|
||||||
integer (plitem_t item) PL_D_NumKeys = #0;
|
integer PL_D_NumKeys (plitem_t item) = #0;
|
||||||
integer (plitem_t dict, string key, plitem_t value) PL_D_AddObject = #0;
|
integer PL_D_AddObject (plitem_t dict, string key, plitem_t value) = #0;
|
||||||
integer (plitem_t array_item, plitem_t item) PL_A_AddObject = #0;
|
integer PL_A_AddObject (plitem_t array_item, plitem_t item) = #0;
|
||||||
integer (plitem_t item) PL_A_NumObjects = #0;
|
integer PL_A_NumObjects (plitem_t item) = #0;
|
||||||
integer (plitem_t array_item, plitem_t item, integer index) PL_A_InsertObjectAtIndex = #0;
|
integer PL_A_InsertObjectAtIndex (plitem_t array_item, plitem_t item, integer index) = #0;
|
||||||
plitem_t (plitem_t array_item, integer index) PL_RemoveObjectAtIndex = #0;
|
plitem_t PL_RemoveObjectAtIndex (plitem_t array_item, integer index) = #0;
|
||||||
plitem_t () PL_NewDictionary = #0;
|
plitem_t PL_NewDictionary (void) = #0;
|
||||||
plitem_t () PL_NewArray = #0;
|
plitem_t PL_NewArray (void) = #0;
|
||||||
plitem_t (void []data, integer len) PL_NewData = #0;
|
plitem_t PL_NewData (void []data, integer len) = #0;
|
||||||
plitem_t (string str) PL_NewString = #0;
|
plitem_t PL_NewString (string str) = #0;
|
||||||
void (plitem_t pl) PL_Free = #0;
|
void PL_Free (plitem_t pl) = #0;
|
||||||
|
|
Loading…
Reference in a new issue