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#endif
18
19#ifdef SVQC
20void 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
#define ReadString
#define NET_HANDLE(id, param)
Definition net.qh:15
#define WriteHeader(to, id)
Definition net.qh:221
#define REGISTER_NET_TEMP(id)
Definition net.qh:28
float MSG_ONE
Definition menudefs.qc:56
void WriteString(string data, float dest, float desto)
ERASEABLE ACCUMULATE void Registry_check(string r, string sv)
Definition registry.qh:165
void Registry_send(string id, string hash)