Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
serveropcodes.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4// Copyright (C) 2015 nerzhul, Loic Blot <loic.blot@unix-experience.fr>
5
6#pragma once
7
8#include "server.h"
9
10class NetworkPacket;
11// Note: don't forward-declare Server here (#14324)
12
25
27{
28 const char* name;
31};
32
34
Definition networkpacket.h:14
Definition server.h:167
@ TOSERVER_NUM_MSG_TYPES
Definition networkprotocol.h:884
@ TOCLIENT_NUM_MSG_TYPES
Definition networkprotocol.h:675
const ClientCommandFactory clientCommandFactoryTable[TOCLIENT_NUM_MSG_TYPES]
Definition serveropcodes.cpp:112
ToServerConnectionState
Definition serveropcodes.h:13
@ TOSERVER_STATE_STARTUP
Definition serveropcodes.h:15
@ TOSERVER_STATE_NOT_CONNECTED
Definition serveropcodes.h:14
@ TOSERVER_STATE_INGAME
Definition serveropcodes.h:16
@ TOSERVER_STATE_ALL
Definition serveropcodes.h:17
const ToServerCommandHandler toServerCommandTable[TOSERVER_NUM_MSG_TYPES]
Definition serveropcodes.cpp:12
Definition serveropcodes.h:27
const char * name
Definition serveropcodes.h:28
bool reliable
Definition serveropcodes.h:30
u8 channel
Definition serveropcodes.h:29
Definition serveropcodes.h:20
void(Server::* handler)(NetworkPacket *pkt)
Definition serveropcodes.h:23
ToServerConnectionState state
Definition serveropcodes.h:22
const char * name
Definition serveropcodes.h:21