]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/lib/registry_net.qh
Make it compile without XONOTIC defined
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / registry_net.qh
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