Skip to content

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:

cost pydantic-field

cost: list[DiceCost]

description pydantic-field

description: str

id pydantic-field

id: str

name pydantic-field

name: str

params pydantic-field

params: dict[str, Any] | None = None

CardTag pydantic-model

Represents a tag associated with a TCG card.

Attributes:

  • id (str) –

    The tag's identifier string.

  • name (str) –

    The tag's display name.

Fields:

id pydantic-field

id: str

name pydantic-field

name: str

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:

Validators:

cost pydantic-field

cost: list[DiceCost]

description pydantic-field

description: str

icon pydantic-field

icon: str

id pydantic-field

id: str

name pydantic-field

name: str

params pydantic-field

params: dict[str, Any] | None

small_icon property

small_icon: str

The URL for the small version of the talent icon.

sub_skills pydantic-field

sub_skills: dict[str, Any] | None = None

tags pydantic-field

tags: list[CardTag]

DiceCost pydantic-model

Represents the dice cost for a TCG card action.

Attributes:

  • type (str) –

    The type of dice required (e.g., "GCG_COST_DICE_PYRO", "GCG_COST_DICE_VOID").

  • amount (int) –

    The number of dice required.

Fields:

amount pydantic-field

amount: int

type pydantic-field

type: str

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:

Validators:

dice_cost pydantic-field

dice_cost: list[DiceCost]

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

route pydantic-field

route: str

small_icon property

small_icon: str

The URL for the small version of the card icon.

sort_order pydantic-field

sort_order: int

tags pydantic-field

tags: list[CardTag]

type pydantic-field

type: str

TCGCardDetail pydantic-model

Represents detailed information about a TCG card.

Attributes:

Fields:

Validators:

dictionaries pydantic-field

dictionaries: list[CardDictionary]

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

props pydantic-field

props: dict[str, int] | None

route pydantic-field

route: str

small_icon property

small_icon: str

The URL for the small version of the card icon.

source pydantic-field

source: str

story_detail pydantic-field

story_detail: str

story_title pydantic-field

story_title: str

tags pydantic-field

tags: list[CardTag]

talents pydantic-field

talents: list[CardTalent]

type pydantic-field

type: str