]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/lib/registry_net.qh
Merge branch 'master' into Mario/bulldozer
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / registry_net.qh
1 #ifndef REGISTRY_NET_H
2 #define REGISTRY_NET_H
3
4 #include "net.qh"
5
6 REGISTER_NET_TEMP(registry)
7
8 #ifdef CSQC
9 NET_HANDLE(registry, bool isnew)
10 {
11         string k = ReadString();
12         string v = ReadString();
13         Registry_check(k, v);
14         return true;
15 }
16 #endif
17
18 #ifdef SVQC
19 void Registry_send(string id, string hash)
20 {
21         int channel = MSG_ONE;
22         WriteHeader(channel, registry);
23         WriteString(channel, id);
24         WriteString(channel, hash);
25 }
26 #endif
27
28 #endif