Xonotic
registry_net.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "net.qh"
4 
5 REGISTER_NET_TEMP(registry)
6 
7 #ifdef CSQC
8 NET_HANDLE(registry, bool isnew)
9 {
10  string k = ReadString();
11  string v = ReadString();
12  Registry_check(k, v);
13  return true;
14 }
15 #endif
16 
17 #ifdef SVQC
18 void Registry_send(string id, string hash)
19 {
20  int channel = MSG_ONE;
21  WriteHeader(channel, registry);
22  WriteString(channel, id);
23  WriteString(channel, hash);
24 }
25 #endif
#define Registry_send(id, hash)
Definition: registry.qh:172
ERASEABLE ACCUMULATE void Registry_check(string r, string sv)
Definition: registry.qh:165
#define ReadString
#define NET_HANDLE(id, param)
Definition: net.qh:12
vector v
Definition: ent_cs.qc:116
#define REGISTER_NET_TEMP(id)
Definition: net.qh:33