summaryrefslogtreecommitdiff
path: root/src/resources/emotedb.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-12 06:44:16 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-12 06:44:16 -0600
commite2d60401eaf55abe9e2251854f3174ffe0f4ad9e (patch)
tree99be0ae61a6b4c97cafeb6458491f38cb7904d8a /src/resources/emotedb.h
parent2eb027b0f7a67706df68fe29e605c5be7fc1d5c9 (diff)
downloadmana-client-e2d60401eaf55abe9e2251854f3174ffe0f4ad9e.tar.gz
mana-client-e2d60401eaf55abe9e2251854f3174ffe0f4ad9e.tar.bz2
mana-client-e2d60401eaf55abe9e2251854f3174ffe0f4ad9e.tar.xz
mana-client-e2d60401eaf55abe9e2251854f3174ffe0f4ad9e.zip
Move emote sprite loading into EmoteDB
Diffstat (limited to 'src/resources/emotedb.h')
-rw-r--r--src/resources/emotedb.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/resources/emotedb.h b/src/resources/emotedb.h
index ad21722a..691881c8 100644
--- a/src/resources/emotedb.h
+++ b/src/resources/emotedb.h
@@ -26,11 +26,12 @@
#include <map>
#include <string>
+class AnimatedSprite;
+
struct EmoteSprite
{
- std::string sprite;
+ const AnimatedSprite *sprite;
std::string name;
- int variant;
};
struct EmoteInfo
@@ -50,7 +51,9 @@ namespace EmoteDB
void unload();
- const EmoteInfo& get(int id);
+ const EmoteInfo *get(int id);
+
+ const AnimatedSprite *getAnimation(int id);
const int& getLast();