Card
Module: pyot.models.lor.card
class Card
CardType: PyotCore
Definitions:
__init__->Nonecode:str = emptyversion:str = models.lor.DEFAULT_VERSIONlocale:str = models.lor.DEFAULT_LOCALE
__str__->str
Endpoints:
ddragon_lor_set_data:['set', '?code', 'version', 'locale']
Attributes:
associated_card_codes->List[str]associated_card_refs->List[str]assets->List[pyot.models.lor.card.CardAssetData]region->strregion_ref->strregions->List[str]region_refs->List[str]attack->intcost->inthealth->intdescription->strdescription_raw->strlevelup_description->strlevelup_description_raw->strflavor_text->strartist_name->strname->strcode->strkeywords->List[str]keyword_refs->List[str]spell_speed->strspell_speed_ref->strrarity->strrarity_ref->strsubtype->strsubtypes->List[str]supertype->strtype->strcollectible->boolset->intfaction->strnumber->intsubcode->str
Properties:
property
associated_cards->List[ForwardRef(Card)]
class Cards
CardsType: PyotCore
Definitions:
__init__->Noneset:int = emptyversion:str = models.lor.DEFAULT_VERSIONlocale:str = models.lor.DEFAULT_LOCALE
__iter__->Iterator[pyot.models.lor.card.Card]__len__->int
Endpoints:
ddragon_lor_set_data:['set', 'version', 'locale']
Attributes:
cards->List[pyot.models.lor.card.Card]
class CardAssetData
CardAssetDataType: PyotStatic
Attributes:
game_absolute_path->strfull_absolute_path->str
class Batch
BatchType: PyotUtils
Methods:
method
add->Noneamount:int = 1
Add a copy to the batch,
amountmay be passed to add more than 1 copy.method
remove->Noneamount:int = 1
Remove a copy from the batch,
amountmay be passed to remove more than 1 copy.
Attributes:
code->strcount->intfaction->strset->intnumber->int
Properties:
property
card->pyot.models.lor.card.Card
class Deck
DeckType: PyotUtils
Methods:
method
append->Nonebatch:Union[pyot.models.lor.card.Batch, str]
Appends a Batch object or CardCodeAndCount string to the Deck.
method
decode->NoneDecode the string in
self.code, rebuild the batches and return self.method
encode->strEncode the content in
self.batches, set the code and return it.method
pop->pyot.models.lor.card.Batchind:int = -1
Remove and return a Batch object by index.
method
pull->Nonecard_code:str
Remove and return a Batch object by code.
Attributes:
batches->List[pyot.models.lor.card.Batch]code->str
Last updated