2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
struct CDEmoteTable {
|
|
|
|
CDEmoteTable() {
|
|
|
|
ID = -1;
|
|
|
|
animationName = "";
|
|
|
|
iconFilename = "";
|
|
|
|
locState = -1;
|
|
|
|
channel = -1;
|
|
|
|
locked = false;
|
|
|
|
localize = false;
|
2023-01-07 09:48:59 +00:00
|
|
|
gateVersion = "";
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|
|
|
|
|
2024-01-09 07:54:14 +00:00
|
|
|
int32_t ID;
|
2022-07-28 13:39:57 +00:00
|
|
|
std::string animationName;
|
|
|
|
std::string iconFilename;
|
2024-01-09 07:54:14 +00:00
|
|
|
int32_t locState;
|
|
|
|
int32_t channel;
|
2022-07-28 13:39:57 +00:00
|
|
|
bool locked;
|
|
|
|
bool localize;
|
2023-01-07 09:48:59 +00:00
|
|
|
std::string gateVersion;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
2023-03-17 14:36:21 +00:00
|
|
|
class CDEmoteTableTable : public CDTable<CDEmoteTableTable> {
|
2021-12-05 17:54:36 +00:00
|
|
|
private:
|
2023-08-11 04:27:40 +00:00
|
|
|
std::map<int, CDEmoteTable> entries;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
public:
|
2023-08-11 04:27:40 +00:00
|
|
|
void LoadValuesFromDatabase();
|
2023-03-17 14:36:21 +00:00
|
|
|
// Returns an emote by ID
|
2024-01-09 07:54:14 +00:00
|
|
|
CDEmoteTable* GetEmote(int32_t id);
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|