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