diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-20 22:16:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-20 22:16:03 +0300 |
commit | 8ed89ded1f45665fadd1e16ddc5d1b4962ad2182 (patch) | |
tree | e0373525405c821800fb845a3806d039deb93624 /src/net/tmwa | |
parent | 99df456164cbb994e2d789c25b193074476a97a2 (diff) | |
download | manaverse-8ed89ded1f45665fadd1e16ddc5d1b4962ad2182.tar.gz manaverse-8ed89ded1f45665fadd1e16ddc5d1b4962ad2182.tar.bz2 manaverse-8ed89ded1f45665fadd1e16ddc5d1b4962ad2182.tar.xz manaverse-8ed89ded1f45665fadd1e16ddc5d1b4962ad2182.zip |
Move net sprite defines into separate file.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 1 | ||||
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 1 | ||||
-rw-r--r-- | src/net/tmwa/protocol.h | 19 | ||||
-rw-r--r-- | src/net/tmwa/sprite.h | 45 |
4 files changed, 47 insertions, 19 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index 5bd39457a..28c167e86 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -32,6 +32,7 @@ #include "net/tmwa/messageout.h" #include "net/tmwa/protocol.h" +#include "net/tmwa/sprite.h" #include "resources/iteminfo.h" diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index 47a55561e..256f30296 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -35,6 +35,7 @@ #include "net/tmwa/messageout.h" #include "net/tmwa/network.h" #include "net/tmwa/protocol.h" +#include "net/tmwa/sprite.h" #include "resources/iteminfo.h" diff --git a/src/net/tmwa/protocol.h b/src/net/tmwa/protocol.h index 17d6a4cc8..6ff1b45ab 100644 --- a/src/net/tmwa/protocol.h +++ b/src/net/tmwa/protocol.h @@ -49,25 +49,6 @@ namespace TmwAthena }; } // namespace TmwAthena -enum -{ - SPRITE_BASE = 0, - SPRITE_SHOE, - SPRITE_BOTTOMCLOTHES, - SPRITE_TOPCLOTHES, - SPRITE_MISC1, - SPRITE_MISC2, - SPRITE_HAIR, - SPRITE_HAT, - SPRITE_CAPE, - SPRITE_GLOVES, - SPRITE_WEAPON, - SPRITE_SHIELD, - SPRITE_EVOL1, - SPRITE_EVOL2, - SPRITE_VECTOREND -}; - /********************************* * Packets from server to client * *********************************/ diff --git a/src/net/tmwa/sprite.h b/src/net/tmwa/sprite.h new file mode 100644 index 000000000..24d47e1c9 --- /dev/null +++ b/src/net/tmwa/sprite.h @@ -0,0 +1,45 @@ +/* + * The ManaPlus Client + * Copyright (C) 2004-2009 The Mana World Development Team + * Copyright (C) 2009-2010 The Mana Developers + * Copyright (C) 2011-2014 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_TMWA_SPRITE_H +#define NET_TMWA_SPRITE_H + +enum +{ + SPRITE_BASE = 0, + SPRITE_SHOE, + SPRITE_BOTTOMCLOTHES, + SPRITE_TOPCLOTHES, + SPRITE_MISC1, + SPRITE_MISC2, + SPRITE_HAIR, + SPRITE_HAT, + SPRITE_CAPE, + SPRITE_GLOVES, + SPRITE_WEAPON, + SPRITE_SHIELD, + SPRITE_EVOL1, + SPRITE_EVOL2, + SPRITE_VECTOREND +}; + +#endif // NET_TMWA_SPRITE_H |