archiTop/deck_builder/single_card_deck_builder.py
def create_deck(self) -> dict:
        """Create the json structure for the card deck containing a single card.

        Returns:
            TableTop card deck json containing only a single card
        """
        card = self.cards[0]

        self.card_json['CardID'] = self.current_card_id
        self.card_json['Nickname'] = card.tabletop_name

        card_asset_json = deepcopy(card_asset_template)
        card_asset_json['FaceURL'] = card.image_url
        card_asset_json['BackURL'] = self.card_back_url
        card_asset_json['BackIsHidden'] = False

        self.card_json['CustomDeck'] = {"1": card_asset_json}
        self.card_json['Transform']['rotZ'] = 180 if self.hidden else 0

        return self.card_json
Create the json structure for the card deck containing a single card.

        Returns:
            TableTop card deck json containing only a single card
        
Create the json structure for the card deck containing a single card.
Create the json structure for the card deck containing a single card .
def create_deck(self) -> dict:
        card = self.cards[0]
        self.card_json['CardID'] = self.current_card_id
        self.card_json['Nickname'] = card.tabletop_name
        card_asset_json = deepcopy(card_asset_template)
        card_asset_json['FaceURL'] = card.image_url
        card_asset_json['BackURL'] = self.card_back_url
        card_asset_json['BackIsHidden'] = False
        self.card_json['CustomDeck'] = {"1": card_asset_json}
        self.card_json['Transform']['rotZ'] = 180 if self.hidden else 0
        return self.card_json
def create_deck ( self ) -> dict : card = self . cards [ 0 ] self . card_json [ 'CardID' ] = self . current_card_id self . card_json [ 'Nickname' ] = card . tabletop_name card_asset_json = deepcopy ( card_asset_template ) card_asset_json [ 'FaceURL' ] = card . image_url card_asset_json [ 'BackURL' ] = self . card_back_url card_asset_json [ 'BackIsHidden' ] = False self . card_json [ 'CustomDeck' ] = { "1" : card_asset_json } self . card_json [ 'Transform' ] [ 'rotZ' ] = 180 if self . hidden else 0 return self . card_json
Create the json structure for the card deck containing a single card.
Create the json structure for the card deck containing a single card .
"""Create the json structure for the card deck containing a single card.

        Returns:
            TableTop card deck json containing only a single card
        """
TableTop card deck json containing only a single card
TableTop card deck json containing only a single card
self