Xonotic
registry_net.qh
Go to the documentation of this file.
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
Registry_send
#define Registry_send(id, hash)
Definition:
registry.qh:172
Registry_check
ERASEABLE ACCUMULATE void Registry_check(string r, string sv)
Definition:
registry.qh:165
ReadString
#define ReadString
Definition:
cl_minigames.qc:158
NET_HANDLE
#define NET_HANDLE(id, param)
Definition:
net.qh:12
v
vector v
Definition:
ent_cs.qc:116
MSG_ONE
float MSG_ONE
Definition:
menudefs.qc:56
net.qh
REGISTER_NET_TEMP
#define REGISTER_NET_TEMP(id)
Definition:
net.qh:33
WriteString
void WriteString(string data, float dest, float desto)
lib
registry_net.qh
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13