Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
clientopcodes.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 "client/client.h"
9#include "networkprotocol.h"
10
11class NetworkPacket;
12// Note: don't forward-declare Client here (#14324)
13
19
26
28{
29 const char* name;
32};
33
35
Definition client.h:105
Definition networkpacket.h:14
ToClientConnectionState
Definition clientopcodes.h:14
@ TOCLIENT_STATE_CONNECTED
Definition clientopcodes.h:16
@ TOCLIENT_STATE_NOT_CONNECTED
Definition clientopcodes.h:15
@ TOCLIENT_STATE_ALL
Definition clientopcodes.h:17
const ServerCommandFactory serverCommandFactoryTable[TOSERVER_NUM_MSG_TYPES]
Definition clientopcodes.cpp:128
const ToClientCommandHandler toClientCommandTable[TOCLIENT_NUM_MSG_TYPES]
Definition clientopcodes.cpp:12
@ TOSERVER_NUM_MSG_TYPES
Definition networkprotocol.h:884
@ TOCLIENT_NUM_MSG_TYPES
Definition networkprotocol.h:675
Definition clientopcodes.h:28
u8 channel
Definition clientopcodes.h:30
const char * name
Definition clientopcodes.h:29
bool reliable
Definition clientopcodes.h:31
Definition clientopcodes.h:21
void(Client::* handler)(NetworkPacket *pkt)
Definition clientopcodes.h:24
ToClientConnectionState state
Definition clientopcodes.h:23
const char * name
Definition clientopcodes.h:22