|
Twitch SDK (Internal)
|
#include <chattypes.h>
Public Member Functions | |
| TTV_ErrorCode | FindBadge (const MessageBadge &badge, BadgeVersion &result) const |
| TTV_ErrorCode | FindBadgeImage (const MessageBadge &badge, float scale, BadgeImage &result) const |
Public Attributes | |
| std::string | language |
| The language of the badge details. More... | |
| std::map< std::string, Badge > | badges |
| The badges in the badge set, keyed by badge name. More... | |
BadgeSet - A collection of badges that apply to a context.
| TTV_ErrorCode ttv::chat::BadgeSet::FindBadge | ( | const MessageBadge & | badge, |
| BadgeVersion & | result | ||
| ) | const |
Finds the corresponding BadgeVersion for the corresponding badge. Returns: TTV_EC_SUCCESS if found and copies into result. TTV_EC_NOT_AVAILABLE if not found in this badge set.
| TTV_ErrorCode ttv::chat::BadgeSet::FindBadgeImage | ( | const MessageBadge & | badge, |
| float | scale, | ||
| BadgeImage & | result | ||
| ) | const |
Finds the closest matching badge image for the given scale, if the badge exists in the given badge set. Returns: TTV_EC_SUCCESS if found and copies into result. TTV_EC_NOT_AVAILABLE if not found in this badge set.
| std::map<std::string, Badge> ttv::chat::BadgeSet::badges |
The badges in the badge set, keyed by badge name.
| std::string ttv::chat::BadgeSet::language |
The language of the badge details.
1.8.13