Source code for wow.models.ruleset

 1"""Models for the Ruleset API.
 2
 3Forever players pick a ruleset, such as Normal or PvP, rather than a realm. Characters and guilds link to their
 4ruleset in the ``dynamic`` namespace.
 5"""
 6
 7from wow.models._common import Document, IdRef, Link, TypedName
 8
 9__all__ = ["Ruleset", "RulesetIndex"]
10
11
[docs] 12class RulesetIndex(Document): 13 """Every ruleset. Index entries carry only an id.""" 14 15 rulesets: tuple[IdRef, ...]
16 17
[docs] 18class Ruleset(Document): 19 """A ruleset, such as Normal, PvP, Roleplay or Roleplay PvP, and whether its servers are up. 20 21 Attributes: 22 status: ``UP`` or another state, with its label. 23 auctions: A link to the ruleset's auction house index; ``client.auctions.houses`` reads it. Every ruleset 24 links to the same fifteen houses. 25 """ 26 27 id: int 28 name: str 29 status: TypedName 30 auctions: Link