#pragma once

#include "net.qh"

#ifdef GAMEQC
REGISTER_NET_TEMP(registry)
#endif

#ifdef CSQC
NET_HANDLE(registry, bool isnew)
{
	string k = ReadString();
	string v = ReadString();
	Registry_check(k, v);
	return true;
}
#endif

#ifdef SVQC
void Registry_send(string id, string hash)
{
	int channel = MSG_ONE;
	WriteHeader(channel, registry);
	WriteString(channel, id);
	WriteString(channel, hash);
}
#endif
