From 7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Sep 2015 02:20:48 +0300 Subject: Use packet handlers from packet defines. --- src/net/packetfunction.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/net/packetfunction.h (limited to 'src/net/packetfunction.h') diff --git a/src/net/packetfunction.h b/src/net/packetfunction.h new file mode 100644 index 000000000..a96140e04 --- /dev/null +++ b/src/net/packetfunction.h @@ -0,0 +1,33 @@ +/* + * The ManaPlus Client + * Copyright (C) 2015 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef NET_PACKETFUNCTION_H +#define NET_PACKETFUNCTION_H + +#include "localconsts.h" + +namespace Net +{ + class MessageIn; +} + +typedef void (*PacketFuncPtr) (Net::MessageIn &msg); + +#endif // NET_PACKETFUNCTION_H -- cgit v1.2.3-70-g09d2