]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.h
adding two new extensions: DP_QC_WHICHPACK (identify a pk3 containing a file), and...
[xonotic/darkplaces.git] / prvm_cmds.h
index b9d16bdb8ca8ae5dce0f03953ff16a824cdc72a6..d6ab82771f1a7ee465a79dd353253d6a21eee511 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()
 
@@ -149,13 +150,11 @@ void      cin_setstate(string name, float type)
 float  cin_getstate(string name)
 void   cin_restart(string name)
 
-#ifdef SUPPORT_GECKO
 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 )
-#endif
 
 ==============================================================================
 menu cmd list:
@@ -195,9 +194,7 @@ float       getserverlistindexforkey(string key)
 #include "mprogdefs.h"
 
 #include "cl_video.h"
-#ifdef SUPPORT_GECKO
 #include "cl_gecko.h"
-#endif
 
 //============================================================================
 // nice helper macros
@@ -236,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);
@@ -301,6 +299,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);
+
 // DRESK - String Length (not counting color codes)
 void VM_strlennocol(void);
 // DRESK - Decolorized String
@@ -358,13 +367,13 @@ void VM_cin_setstate( void );
 void VM_cin_getstate( void );
 void VM_cin_restart( void );
 
-#ifdef SUPPORT_GECKO
 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 );
-#endif
+void VM_gecko_resize( void );
+void VM_gecko_get_texture_extent( void );
 
 void VM_drawline (void);
 
@@ -408,7 +417,15 @@ 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_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);