]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.h
extresponse: make svqc receive only those on the server socket, and csqc/menuqc only...
[xonotic/darkplaces.git] / prvm_cmds.h
index fb4837379c712f0cfb303977a48f3b7555026e57..1a836e2d6ccfdf8cada0f38f877e9b948a196af5 100644 (file)
@@ -88,6 +88,7 @@ float gettime()
                parseentitydata(entity ent, string data)
 float  mod(float val, float m)
 const string   cvar_string (string)
+float  cvar_type (string)
                crash()
                stackdump()
 
@@ -126,7 +127,7 @@ perhaps only : Menu : WriteMsg
                WriteString(string data, float dest, float desto)
                WriteEntity(entity data, float dest, float desto)
 
-Client & Menu : draw functions & video functions
+Client & Menu : draw functions & video functions (& gecko functions)
 ===================================================
 
 float  iscachedpic(string pic)
@@ -137,6 +138,7 @@ float       drawstring(vector position, string text, vector scale, vector rgb, float a
 float  drawcolorcodedstring(vector position, string text, vector scale, float alpha, float flag)
 float  stringwidth(string text, float handleColors)
 float  drawpic(vector position, string pic, vector size, vector rgb, float alpha, float flag)
+float  drawsubpic(vector position, vector size, string pic, vector srcPos, vector srcSize, vector rgb, float alpha, float flag)
 float  drawfill(vector position, vector size, vector rgb, float alpha, float flag)
                drawsetcliparea(float x, float y, float width, float height)
                drawresetcliparea()
@@ -148,6 +150,12 @@ void       cin_setstate(string name, float type)
 float  cin_getstate(string name)
 void   cin_restart(string name)
 
+float[bool] gecko_create( string name )
+void gecko_destroy( string name )
+void gecko_navigate( string name, string URI )
+float[bool] gecko_keyevent( string name, float key, float eventtype ) 
+void gecko_mousemove( string name, float x, float y )
+
 ==============================================================================
 menu cmd list:
 ===============
@@ -186,6 +194,7 @@ float       getserverlistindexforkey(string key)
 #include "mprogdefs.h"
 
 #include "cl_video.h"
+#include "cl_gecko.h"
 
 //============================================================================
 // nice helper macros
@@ -224,6 +233,7 @@ void VM_break (void);
 void VM_localcmd (void);
 void VM_cvar (void);
 void VM_cvar_string(void);
+void VM_cvar_type (void);
 void VM_cvar_defstring (void);
 void VM_cvar_set (void);
 void VM_dprint (void);
@@ -267,6 +277,7 @@ void VM_min (void);
 void VM_max (void);
 void VM_bound (void);
 void VM_pow (void);
+void VM_log (void);
 void VM_asin (void);
 void VM_acos (void);
 void VM_atan (void);
@@ -289,6 +300,17 @@ void VM_stov(void);
 void VM_strzone(void);
 void VM_strunzone(void);
 
+// KrimZon - DP_QC_ENTITYDATA
+void VM_numentityfields(void);
+void VM_entityfieldname(void);
+void VM_entityfieldtype(void);
+void VM_getentityfieldstring(void);
+void VM_putentityfieldstring(void);
+// And declared these ones for VM_getentityfieldstring and VM_putentityfieldstring in prvm_cmds.c
+// the function is from prvm_edict.c
+char *PRVM_UglyValueString (etype_t type, prvm_eval_t *val);
+qboolean PRVM_ED_ParseEpair(prvm_edict_t *ent, ddef_t *key, const char *s, qboolean parsebackslash);
+
 // DRESK - String Length (not counting color codes)
 void VM_strlennocol(void);
 // DRESK - Decolorized String
@@ -328,6 +350,8 @@ void VM_drawstring(void);
 void VM_drawcolorcodedstring(void);
 void VM_stringwidth(void);
 void VM_drawpic(void);
+void VM_drawrotpic(void);
+void VM_drawsubpic(void);
 void VM_drawfill(void);
 void VM_drawsetcliparea(void);
 void VM_drawresetcliparea(void);
@@ -337,6 +361,7 @@ void VM_makevectors (void);
 void VM_vectorvectors (void);
 
 void VM_keynumtostring (void);
+void VM_findkeysforcommand (void);
 void VM_stringtokeynum (void);
 
 void VM_cin_open( void );
@@ -345,6 +370,14 @@ void VM_cin_setstate( void );
 void VM_cin_getstate( void );
 void VM_cin_restart( void );
 
+void VM_gecko_create( void );
+void VM_gecko_destroy( void );
+void VM_gecko_navigate( void );
+void VM_gecko_keyevent( void );
+void VM_gecko_movemouse( void );
+void VM_gecko_resize( void );
+void VM_gecko_get_texture_extent( void );
+
 void VM_drawline (void);
 
 void VM_bitshift (void);
@@ -387,7 +420,31 @@ void VM_wasfreed (void);
 void VM_strreplace (void);
 void VM_strireplace (void);
 
+void VM_crc16(void);
+
 void VM_SetTraceGlobals(const trace_t *trace);
+void VM_ClearTraceGlobals(void);
 
 void VM_Cmd_Init(void);
 void VM_Cmd_Reset(void);
+
+void VM_uri_escape (void);
+void VM_uri_unescape (void);
+void VM_whichpack (void);
+
+void VM_etof (void);
+void VM_uri_get (void);
+void VM_netaddress_resolve (void);
+
+void VM_tokenize_console (void);
+void VM_argv_start_index (void);
+void VM_argv_end_index (void);
+
+void VM_buf_cvarlist(void);
+void VM_cvar_description(void);
+
+void VM_CL_getextresponse (void);
+void VM_SV_getextresponse (void);
+
+void VM_isfunction(void);
+void VM_callfunction(void);