Source code for wow.models.playable_class

 1"""Models for the Playable Class API."""
 2
 3from wow.models._common import Document, GenderedName, IdRef, Link, Ref
 4
 5__all__ = ["PlayableClass", "PlayableClassIndex"]
 6
 7
[docs] 8class PlayableClassIndex(Document): 9 """Every playable class. Forever has the nine original classes.""" 10 11 classes: tuple[Ref, ...]
12 13
[docs] 14class PlayableClass(Document): 15 """A playable class with its specializations, races and power types.""" 16 17 id: int 18 name: str 19 gender_name: GenderedName 20 power_type: Ref 21 specializations: tuple[Ref, ...] 22 media: IdRef 23 playable_races: tuple[Ref, ...] 24 additional_power_types: tuple[Ref, ...] = () 25 pvp_talent_slots: Link | None = None