//getentityfieldstring returns data as would be written to a savegame, eg... "0.05" (float), "0 0 1" (vector), or "Hello World!" (string). Function names can also be returned.
//putentityfieldstring puts the data returned by getentityfieldstring back into the entity.
+//IRC
+void irc_connect() = #550;
+void irc_disconnect() = #551;
+void irc_write(string line) = #552;
+
+ //DP_COVERAGE
+ //idea: divVerent
+ //darkplaces implementation: divVerent
+ //function definitions:
+ void coverage() = #642; // Reports a coverage event. The engine counts for each of the calls to this builtin whether it has been called.
+
// assorted undocumented extensions
string(string, float) netaddress_resolve = #625;
string(string search, string replace, string subject) strreplace = #484;
VM_physics_ApplyCmd(ed, &f);
}
-
+void VM_irc_connect(prvm_prog_t *prog)
+{
+ IRC_Connect();
+}
+
+void VM_irc_disconnect(prvm_prog_t *prog)
+{
+ IRC_Disconnect();
+}
+
+void VM_irc_write(prvm_prog_t *prog)
+{
+ char string[VM_STRINGTEMP_LENGTH];
+
+ VM_VarString(prog, 0, string, sizeof(string));
+ IRC_AddMessage(string);
- }
++}
++
+ extern cvar_t prvm_coverage;
+ void VM_coverage(prvm_prog_t *prog)
+ {
+ VM_SAFEPARMCOUNT(0, VM_coverage);
+ if (prog->explicit_profile[prog->xstatement]++ == 0 && (prvm_coverage.integer & 2))
+ PRVM_ExplicitCoverageEvent(prog, prog->xfunction, prog->xstatement);
+ }
void VM_physics_addforce(prvm_prog_t *prog);
void VM_physics_addtorque(prvm_prog_t *prog);
+// irc
+void VM_irc_connect(prvm_prog_t *prog);
+void VM_irc_disconnect(prvm_prog_t *prog);
+void VM_irc_write(prvm_prog_t *prog);
++
+ void VM_coverage(prvm_prog_t *prog);
+
#endif