1"""Models for the Guild Crest API."""
2
3from wow.models._common import Document, IdRef, Model
4from wow.models.character import GuildCrestColor
5
6__all__ = ["GuildCrestComponent", "GuildCrestComponentColors", "GuildCrestComponentsIndex"]
7
8
[docs]
9class GuildCrestComponent(Model):
10 """One selectable guild crest emblem or border: its catalog id and rendered media."""
11
12 id: int
13 media: IdRef
14
15
[docs]
16class GuildCrestComponentColors(Model):
17 """Every selectable crest color, grouped by the part of the crest it colors."""
18
19 emblems: tuple[GuildCrestColor, ...]
20 borders: tuple[GuildCrestColor, ...]
21 backgrounds: tuple[GuildCrestColor, ...]
22
23
[docs]
24class GuildCrestComponentsIndex(Document):
25 """Every emblem, border and color a guild crest can use."""
26
27 emblems: tuple[GuildCrestComponent, ...]
28 borders: tuple[GuildCrestComponent, ...]
29 colors: GuildCrestComponentColors