Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
serveropcodes.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 "server.h"
24#include "networkprotocol.h"
25
26class NetworkPacket;
27// Note: don't forward-declare Server here (#14324)
28
34};
36{
37 const char *name;
40};
41
43{
44 const char* name;
47};
48
50
Definition: networkpacket.h:27
Definition: server.h:146
@ TOSERVER_NUM_MSG_TYPES
Definition: networkprotocol.h:1062
@ TOCLIENT_NUM_MSG_TYPES
Definition: networkprotocol.h:852
const ClientCommandFactory clientCommandFactoryTable[TOCLIENT_NUM_MSG_TYPES]
Definition: serveropcodes.cpp:127
ToServerConnectionState
Definition: serveropcodes.h:29
@ TOSERVER_STATE_STARTUP
Definition: serveropcodes.h:31
@ TOSERVER_STATE_NOT_CONNECTED
Definition: serveropcodes.h:30
@ TOSERVER_STATE_INGAME
Definition: serveropcodes.h:32
@ TOSERVER_STATE_ALL
Definition: serveropcodes.h:33
const ToServerCommandHandler toServerCommandTable[TOSERVER_NUM_MSG_TYPES]
Definition: serveropcodes.cpp:27
Definition: serveropcodes.h:43
const char * name
Definition: serveropcodes.h:44
bool reliable
Definition: serveropcodes.h:46
u8 channel
Definition: serveropcodes.h:45
Definition: serveropcodes.h:36
void(Server::* handler)(NetworkPacket *pkt)
Definition: serveropcodes.h:39
ToServerConnectionState state
Definition: serveropcodes.h:38
const char * name
Definition: serveropcodes.h:37