blob: 4f4f680be6b2e065222a0a43c22edf446a3b7631 (
plain)
ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 10 00 00 00 10 08 06 00 00 00 1f f3 ff | .PNG........IHDR................ |
0020 | 61 00 00 00 01 73 52 47 42 00 ae ce 1c e9 00 00 00 06 62 4b 47 44 00 ff 00 ff 00 ff a0 bd a7 93 | a....sRGB.........bKGD.......... |
0040 | 00 00 00 09 70 48 59 73 00 00 0b 13 00 00 0b 13 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 07 db 02 | ....pHYs.................tIME... |
0060 | 1b 0e 21 06 26 97 58 6e 00 00 02 ee 49 44 41 54 38 cb 25 c8 5b 72 db 54 00 80 e1 ff 48 47 b2 ee | ..!.&.Xn....IDAT8.%.[r.T....HG.. | /*
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 "client/client.h"
#include "networkprotocol.h"
class NetworkPacket;
enum ToClientConnectionState {
TOCLIENT_STATE_NOT_CONNECTED,
TOCLIENT_STATE_CONNECTED,
TOCLIENT_STATE_ALL,
};
struct ToClientCommandHandler
{
const char* name;
ToClientConnectionState state;
void (Client::*handler)(NetworkPacket* pkt);
};
struct ServerCommandFactory
{
const char* name;
u8 channel;
bool reliable;
};
extern const ToClientCommandHandler toClientCommandTable[TOCLIENT_NUM_MSG_TYPES];
extern const ServerCommandFactory serverCommandFactoryTable[TOSERVER_NUM_MSG_TYPES];
8b 32 5a ca ac 25 59 .....1.....='.6X.Q..M.*...2Z..%Y |
0280 | c4 a0 0a 64 51 97 24 67 16 fe cc c4 b6 41 d5 06 cf f9 8e 53 57 30 f2 24 c2 33 78 39 f3 a9 b5 c0 | ...dQ.$g.....A.....SW0.$.3x9.... |
02a0 | b1 7c f6 87 1d ef ae 27 0c 23 93 fb bb 67 8c a7 87 96 59 1c 32 1d 8f 39 6c 0b 1e d3 2d fd d0 52 | .|.....'.#...g....Y.2..9l...-..R |
02c0 | 97 e0 db 01 57 6f a6 14 aa a3 6c 7b 2c 5b d2 37 16 8b f9 05 f7 7f a6 04 ce 80 41 2d 49 92 ff c3 | ....Wo....l{,[.7..........A-I... |
02e0 | 35 35 f1 34 a0 ce 24 13 cf a6 cf 21 f4 17 e4 3b 87 a7 b4 e1 f7 df 96 94 79 cf a7 bf d7 c4 17 92 | 55.4..$....!...;........y....... |
0300 | e9 ab 04 f3 fb 1f 2f a9 9a 0e d3 ed 30 4c 0b 3f b0 39 9b 5a 58 8e a4 ce 04 9d ee 70 09 70 5d 0f | ....../.....0L.?.9.ZX......p.p]. |
0320 | ba 92 6a 68 48 77 05 86 65 22 6d 81 f9 f6 e3 19 ab d5 11 63 64 12 c4 0e c5 ae e5 f0 58 a0 3a 08 | ..jhHw..e"m........cd.......X.:. |
0340 | 82 08 c3 ae b8 5f 6d a9 9a 86 77 ef 63 8a 53 c7 fc dc 27 72 43 f6 fb 03 ff 01 bf cb 73 b3 33 9b | ....._m...w.c.S...'rC.......s.3. |
0360 | 1a 11 00 00 00 00 49 45 4e 44 ae 42 60 82 | ......IEND.B`. |