2021-12-05 17:54:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Custom Classes
|
|
|
|
#include "CDTable.h"
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\file CDEmoteTable.hpp
|
|
|
|
\brief Contains data for the CDEmoteTable table
|
|
|
|
*/
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
//! CDEmoteEntry Struct
|
2021-12-05 17:54:36 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
int ID;
|
|
|
|
std::string animationName;
|
|
|
|
std::string iconFilename;
|
|
|
|
int locState;
|
|
|
|
int channel;
|
|
|
|
bool locked;
|
|
|
|
bool localize;
|
2023-01-07 09:48:59 +00:00
|
|
|
std::string gateVersion;
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
//! CDEmoteTable table
|
|
|
|
class CDEmoteTableTable : public CDTable {
|
|
|
|
private:
|
2022-07-28 13:39:57 +00:00
|
|
|
std::map<int, CDEmoteTable*> entries;
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
//! Constructor
|
|
|
|
CDEmoteTableTable(void);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
//! Destructor
|
|
|
|
~CDEmoteTableTable(void);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
//! Returns the table's name
|
|
|
|
/*!
|
|
|
|
\return The table name
|
|
|
|
*/
|
|
|
|
std::string GetName(void) const override;
|
|
|
|
|
|
|
|
//! Returns an emote by ID
|
|
|
|
CDEmoteTable* GetEmote(int id);
|
2021-12-05 17:54:36 +00:00
|
|
|
};
|