DarkflameServer/dDatabase/Tables/CDEmoteTable.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
624 B
C
Raw Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
#include <map>
struct CDEmoteTable {
CDEmoteTable() {
ID = -1;
animationName = "";
iconFilename = "";
locState = -1;
channel = -1;
locked = false;
localize = false;
gateVersion = "";
}
int ID;
std::string animationName;
std::string iconFilename;
int locState;
int channel;
bool locked;
bool localize;
std::string gateVersion;
};
class CDEmoteTableTable : public CDTable<CDEmoteTableTable> {
private:
std::map<int, CDEmoteTable> entries;
public:
void LoadValuesFromDatabase();
// Returns an emote by ID
CDEmoteTable* GetEmote(int id);
};