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
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
#elifdef 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
ReadString
#define ReadString
Definition
cl_minigames.qc:158
WriteString
WriteString(chan, ent.netname)
net.qh
NET_HANDLE
#define NET_HANDLE(id, param)
Definition
net.qh:15
WriteHeader
#define WriteHeader(to, id)
Definition
net.qh:265
REGISTER_NET_TEMP
#define REGISTER_NET_TEMP(id)
Definition
net.qh:31
MSG_ONE
float MSG_ONE
Definition
menudefs.qc:56
Registry_check
ERASEABLE ACCUMULATE void Registry_check(string r, string sv)
Definition
registry.qh:203
Registry_send
void Registry_send(string id, string hash)
Definition
registry_net.qh:18
lib
registry_net.qh
Generated on
for Xonotic QuakeC by
1.16.1