blob: a6d9745d8eabd64f9f9a6fbb17a39ab0c3d12c51 (
plain)
ofs | hex dump | ascii |
---|
0000 | 42 42 33 44 97 80 00 00 01 00 00 00 54 45 58 53 5b 00 00 00 61 64 76 74 72 61 69 6e 73 5f 64 74 | BB3D........TEXS[...advtrains_dt |
0020 | 72 61 63 6b 5f 72 61 69 6c 2e 70 6e 67 00 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 | rack_rail.png................... |
0040 | 80 3f 00 00 80 3f 00 00 00 00 72 61 69 6c 2e 70 6e 67 00 01 00 00 00 02 00 00 00 00 00 00 00 00 | .?...?....rail.png.............. |
0060 | 00 00 00 00 00 80 3f 00 00 80 3f 00 00 00 00 42 52 55 53 58 00 00 00 01 00 00 00 42 72 75 73 68 | ......?...?....BRUSX.......Brush |
0080 | 2e 30 30 31 00 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 00 00 01 00 00 00 00 00 00 | .001....?...?...?...?........... |
00a0 | 00 00 00 00 00 42 72 75 73 68 2e 30 30/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
Copyright (C) 2015 nerzhul, Loic Blot <loic.blot@unix-experience.fr>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include "server.h"
#include "networkprotocol.h"
class NetworkPacket;
enum ToServerConnectionState {
TOSERVER_STATE_NOT_CONNECTED,
TOSERVER_STATE_STARTUP,
TOSERVER_STATE_INGAME,
TOSERVER_STATE_ALL,
};
struct ToServerCommandHandler
{
const std::string name;
ToServerConnectionState state;
void (Server::*handler)(NetworkPacket* pkt);
};
struct ClientCommandFactory
{
const char* name;
u8 channel;
bool reliable;
};
extern const ToServerCommandHandler toServerCommandTable[TOSERVER_NUM_MSG_TYPES];
extern const ClientCommandFactory clientCommandFactoryTable[TOCLIENT_NUM_MSG_TYPES];
|