diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-02 02:20:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-02 02:20:48 +0300 |
commit | 7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa (patch) | |
tree | 6eb9f0aebf7e80242f5b8e23fb0ea2f98635a47a /src/net/packetfunction.h | |
parent | 1e302305d8777da7b40b1ae53ae33eab866b9e26 (diff) | |
download | manaplus-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.gz manaplus-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.bz2 manaplus-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.tar.xz manaplus-7ccc1b5fe8988b2a51d3fb2f4422f95c98a8d6aa.zip |
Use packet handlers from packet defines.
Diffstat (limited to 'src/net/packetfunction.h')
-rw-r--r-- | src/net/packetfunction.h | 33 |
1 files changed, 33 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. + */ + +#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 |