Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
registry_net.qh
Go to the documentation of this file.
1#pragma once
2
3#include "net.qh"
4
5#ifdef GAMEQC
6REGISTER_NET_TEMP(registry)
7#endif
8
9#ifdef CSQC
10NET_HANDLE(registry, bool isnew)
11{
12 string k = ReadString();
13 string v = ReadString();
14 Registry_check(k, v);
15 return true;
16}
17#elifdef SVQC
18void 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 ReadString
WriteString(chan, ent.netname)
#define NET_HANDLE(id, param)
Definition net.qh:15
#define WriteHeader(to, id)
Definition net.qh:265
#define REGISTER_NET_TEMP(id)
Definition net.qh:31
float MSG_ONE
Definition menudefs.qc:56
ERASEABLE ACCUMULATE void Registry_check(string r, string sv)
Definition registry.qh:203
void Registry_send(string id, string hash)