Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
clientopcodes.h
Go to the documentation of this file.
1/*
2Minetest
3Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4Copyright (C) 2015 nerzhul, Loic Blot <loic.blot@unix-experience.fr>
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation; either version 2.1 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License along
17with this program; if not, write to the Free Software Foundation, Inc.,
1851 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/
20
21#pragma once
22
23#include "client/client.h"
24#include "networkprotocol.h"
25
26class NetworkPacket;
27// Note: don't forward-declare Client here (#14324)
28
33};
34
36{
37 const char* name;
40};
41
43{
44 const char* name;
47};
48
50
Definition: client.h:119
Definition: networkpacket.h:27
ToClientConnectionState
Definition: clientopcodes.h:29
@ TOCLIENT_STATE_CONNECTED
Definition: clientopcodes.h:31
@ TOCLIENT_STATE_NOT_CONNECTED
Definition: clientopcodes.h:30
@ TOCLIENT_STATE_ALL
Definition: clientopcodes.h:32
const ServerCommandFactory serverCommandFactoryTable[TOSERVER_NUM_MSG_TYPES]
Definition: clientopcodes.cpp:143
const ToClientCommandHandler toClientCommandTable[TOCLIENT_NUM_MSG_TYPES]
Definition: clientopcodes.cpp:27
@ TOSERVER_NUM_MSG_TYPES
Definition: networkprotocol.h:1062
@ TOCLIENT_NUM_MSG_TYPES
Definition: networkprotocol.h:852
Definition: clientopcodes.h:43
u8 channel
Definition: clientopcodes.h:45
const char * name
Definition: clientopcodes.h:44
bool reliable
Definition: clientopcodes.h:46
Definition: clientopcodes.h:36
void(Client::* handler)(NetworkPacket *pkt)
Definition: clientopcodes.h:39
ToClientConnectionState state
Definition: clientopcodes.h:38
const char * name
Definition: clientopcodes.h:37