TCG Models
tcg
Classes:
-
CardDictionary–Represents a dictionary entry (like a skill description) for a TCG card.
-
CardTag–Represents a tag associated with a TCG card.
-
CardTalent–Represents a talent or skill associated with a TCG card.
-
DiceCost–Represents the dice cost for a TCG card action.
-
TCGCard–Represents a TCG card summary.
-
TCGCardDetail–Represents detailed information about a TCG card.
CardDictionary
pydantic-model
Represents a dictionary entry (like a skill description) for a TCG card.
Attributes:
-
id(str) –The dictionary entry's ID.
-
name(str) –The name of the entry (e.g., skill name).
-
params(dict[str, Any] | None) –Optional parameters used for placeholder replacement in the description.
-
description(str) –The detailed description of the entry.
-
cost(list[DiceCost]) –The dice cost associated with this entry, if any.
Fields:
Validators:
-
_convert_cost→cost -
_format_description→description
CardTag
pydantic-model
CardTalent
pydantic-model
Represents a talent or skill associated with a TCG card.
Attributes:
-
id(str) –The talent's ID.
-
name(str) –The talent's name.
-
params(dict[str, Any] | None) –Optional parameters used for placeholder replacement in the description.
-
description(str) –The detailed description of the talent.
-
cost(list[DiceCost]) –The dice cost to use the talent.
-
tags(list[CardTag]) –A list of tags associated with the talent.
-
icon(str) –The icon URL for the talent.
-
sub_skills(dict[str, Any] | None) –Optional dictionary of sub-skills related to this talent.
Fields:
-
id(str) -
name(str) -
params(dict[str, Any] | None) -
description(str) -
cost(list[DiceCost]) -
tags(list[CardTag]) -
icon(str) -
sub_skills(dict[str, Any] | None)
Validators:
-
_format_description→description -
_convert_cost→cost -
_convert_tags→tags -
_convert_icon_url→icon
DiceCost
pydantic-model
TCGCard
pydantic-model
Represents a TCG card summary.
Attributes:
-
id(int) –The card's unique ID.
-
name(str) –The card's name.
-
type(str) –The type of card (e.g., "GCG_CARD_CHARACTER", "GCG_CARD_EVENT").
-
tags(list[CardTag]) –A list of tags associated with the card.
-
dice_cost(list[DiceCost]) –The dice cost required to play the card.
-
icon(str) –The main icon URL for the card.
-
route(str) –The route identifier for the card.
-
sort_order(int) –The sorting order value for the card.
Fields:
-
id(int) -
name(str) -
type(str) -
tags(list[CardTag]) -
dice_cost(list[DiceCost]) -
icon(str) -
route(str) -
sort_order(int)
Validators:
TCGCardDetail
pydantic-model
Represents detailed information about a TCG card.
Attributes:
-
id(int) –The card's unique ID.
-
name(str) –The card's name.
-
type(str) –The type of card (e.g., "GCG_CARD_CHARACTER", "GCG_CARD_EVENT").
-
tags(list[CardTag]) –A list of tags associated with the card.
-
props(dict[str, int] | None) –Optional properties, often representing dice cost or other stats.
-
icon(str) –The main icon URL for the card.
-
route(str) –The route identifier for the card.
-
story_title(str) –The title of the card's story/flavor text.
-
story_detail(str) –The main body of the card's story/flavor text.
-
source(str) –How the card is obtained.
-
dictionaries(list[CardDictionary]) –Associated dictionary entries (skills, effects).
-
talents(list[CardTalent]) –Associated talents or special skills.
Fields:
-
id(int) -
name(str) -
type(str) -
tags(list[CardTag]) -
props(dict[str, int] | None) -
icon(str) -
route(str) -
story_title(str) -
story_detail(str) -
source(str) -
dictionaries(list[CardDictionary]) -
talents(list[CardTalent])
Validators:
-
_convert_tags→tags -
_convert_icon_url→icon -
_convert_dictionaries→dictionaries -
_convert_talents→talents