Mana
Loading...
Searching...
No Matches
emotedb.h
Go to the documentation of this file.
1/*
2 * Emote database
3 * Copyright (C) 2009 Aethyra Development Team
4 * Copyright (C) 2009-2013 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include <string>
25
26#include "resources/image.h"
27#include "resources/imageset.h"
28
29#include "utils/xml.h"
30
39
43namespace EmoteDB
44{
45 void init();
46
47 void readEmoteNode(XML::Node node, const std::string &filename);
48
49 void checkStatus();
50
51 void unload();
52
53 const Emote &get(int id);
54 const Emote &getByIndex(int index);
55
56 int getEmoteCount();
57}
Automatically counting Resource reference.
Definition resource.h:74
Emote information database.
Definition emotedb.h:44
void checkStatus()
Definition emotedb.cpp:99
const Emote & getByIndex(int index)
Definition emotedb.cpp:129
const Emote & get(int id)
Definition emotedb.cpp:115
void readEmoteNode(XML::Node node, const std::string &filename)
Definition emotedb.cpp:49
void init()
Definition emotedb.cpp:39
int getEmoteCount()
Definition emotedb.cpp:134
void unload()
Definition emotedb.cpp:104
int id
Definition emotedb.h:33
int effectId
Definition emotedb.h:34
std::string name
Definition emotedb.h:35
ResourceRef< ImageSet > is
Definition emotedb.h:36
ResourceRef< Image > image
Definition emotedb.h:37