badges
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <boost/optional.hpp>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "common/UniqueAccess.hpp"
|
||||
#include "util/QStringHash.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
@@ -15,14 +18,15 @@ class Paths;
|
||||
class TwitchBadges
|
||||
{
|
||||
public:
|
||||
TwitchBadges();
|
||||
|
||||
void initialize(Settings &settings, Paths &paths);
|
||||
|
||||
private:
|
||||
void loadTwitchBadges();
|
||||
|
||||
std::unordered_map<QString, EmotePtr> badges;
|
||||
boost::optional<EmotePtr> badge(const QString &set,
|
||||
const QString &version) const;
|
||||
|
||||
private:
|
||||
UniqueAccess<
|
||||
std::unordered_map<QString, std::unordered_map<QString, EmotePtr>>>
|
||||
badgeSets_; // "bits": { "100": ... "500": ...
|
||||
};
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user